Package
cwd
Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 1.9m
- +14% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 2
- Direct, from package.json
- Last release
- 10 years ago
- v0.10.0
- GitHub stars
- 13
- 2 forks
- Open issues / PRs
- 2 / 0
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
1,866,849 downloads last week, 9,677,378 in the last month. The 12-month change of +14% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 025 in total
- Latest version
- 0.10.0, 5 Jun 201610 years ago
- First published
- 8 Jan 2014
- Last push to GitHub
- 6 Aug 20163,701 days before the snapshot
- Repository archived
- No
- Open issues
- 2
- Open pull requests
- 0
- Commits, last 52 weeks
- 0
- Dependents on npm
- 134
Major versions
- v0 first release 0.1.0, 8 Jan 2014
Recent releases
| Version | Published |
|---|---|
| 0.10.0 | 5 Jun 2016 |
| 0.9.1 | 28 Nov 2015 |
| 0.9.0 | 28 Nov 2015 |
| 0.8.4 | 20 Oct 2015 |
| 0.8.3 | 20 Oct 2015 |
| 0.8.2 | 20 Oct 2015 |
| 0.8.1 | 20 Oct 2015 |
| 0.8.0 | 21 Aug 2015 |
| 0.7.0 | 20 Jul 2015 |
| 0.6.0 | 16 Mar 2015 |
| 0.5.1 | 5 Mar 2015 |
| 0.5.0 | 3 Mar 2015 |
| 0.4.0 | 1 Dec 2014 |
| 0.3.7 | 6 Jul 2014 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=0.8
- Runtimes
- -
- Unpacked size (npm)
- -
- Dependencies (2)
find-pkgfs-exists-sync
npm install cwd- jsDelivr
https://cdn.jsdelivr.net/npm/cwd@0.10.0/ - unpkg
https://unpkg.com/cwd@0.10.0/ - esm.sh
https://esm.sh/cwd@0.10.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| path-complete-extname | 322.1k | - | 8 years ago | CommonJS | - |
| resolve-glob | 20k | - | 9 years ago | CommonJS | - |
| @stdlib/fs-resolve-parent-path | 542k | - | 7 months ago | CommonJS | - |
| cpx | 209.2k | - | 10 years ago | CommonJS | - |
| @stdlib/fs-read-file | 345k | - | 7 months ago | CommonJS | - |
| @stdlib/fs-exists | 542k | - | 7 months ago | CommonJS | - |
| multiparty | 733.1k | - | 14 days ago | - | - |
| fsu | 912.2k | - | 6 years ago | CommonJS | - |
Indexability: Indexed.