roberto-butti / some-drops-of-javascript

This book collects some useful, unknown, underrated JavaScript functions discovered and learned while using JavaScript daily.
https://drops-of-javascript.hi-folks.dev/
Other
151 stars 46 forks source link

adding new function to the document-process.cwd() #59

Closed shahzdvp closed 1 month ago

shahzdvp commented 1 month ago

Add documentation for process.cwd()

This pull request adds documentation for the process.cwd() method in Node.js, along with a simple example demonstrating its usage.

Changes Made

  1. Added a new file src/content/docs/06-files/01_files-cwd.md with comprehensive documentation on process.cwd().
  2. Created an example file examples/06-01_process-cwd.mjs showing basic usage of process.cwd().
  3. Formatted the example file using the project's style guidelines.

Documentation Contents

The new documentation file includes:

Example File

The example file demonstrates:

Checklist

I welcome any feedback or suggestions for improvement. Thank you for reviewing this contribution!

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
some-drops-of-javascript ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 24, 2024 10:15am
roberto-butti commented 1 month ago

Thank you @shahzdvp for the PR. Very helpful!