Skip to content
JS
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)

v0.10.0, 5 Jun 2016MITCommonJSTypes: NoneFiles and file systemsNode.js utilities
$ npm install cwd

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
01m2m3mSept 2025Mar 2026Sept 2026High 2.8m (25 Aug 2026)Low 1.2m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v0 first release 0.1.0, 8 Jan 2014

Recent releases

VersionPublished
0.10.05 Jun 2016
0.9.128 Nov 2015
0.9.028 Nov 2015
0.8.420 Oct 2015
0.8.320 Oct 2015
0.8.220 Oct 2015
0.8.120 Oct 2015
0.8.021 Aug 2015
0.7.020 Jul 2015
0.6.016 Mar 2015
0.5.15 Mar 2015
0.5.03 Mar 2015
0.4.01 Dec 2014
0.3.76 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/cwd@0.10.0/
  • unpkghttps://unpkg.com/cwd@0.10.0/
  • esm.shhttps://esm.sh/cwd@0.10.0
PackageWeekly downloadsGzipLast releaseModuleComparison
path-complete-extname322.1k-8 years agoCommonJS-
resolve-glob20k-9 years agoCommonJS-
@stdlib/fs-resolve-parent-path542k-7 months agoCommonJS-
cpx209.2k-10 years agoCommonJS-
@stdlib/fs-read-file345k-7 months agoCommonJS-
@stdlib/fs-exists542k-7 months agoCommonJS-
multiparty733.1k-14 days ago--
fsu912.2k-6 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.