resolve-cwd resolves the filesystem path of a module similarly to Node.js require.resolve(), but it resolves relative to the current working directory instead of the calling file. It is useful when you need to locate a module ID from the process.cwd(), with options that either throw or return undefined if the module cannot be found.
Project status
- The repository appears not to be actively maintained, with the last upstream push on 2021-01-23 and no updates since the 2021 timeframe, so it is best characterized as quiet or dormant relative to today (2026-08-12).
- Update cadence is effectively historical rather than ongoing, with releases in 2019 (v3.0.0), 2017 (v2.0.0), and 2015 (v1.0.0), indicating no recent regular pattern of updates.
AI summary generated
Recent updates
v3.0.0
Release v3.0.0 bumps the minimum supported Node.js version to 8 and updates the behavior of resolveCwd.silent() to return undefined instead of null. It also adds TypeScript definitions (index.d.ts) along with type tests (tsd).
BreakingFeaturesv2.0.0
This release upgrades the resolve-from dependency and updates the library to resolve modules relative to process.cwd. It also changes the error handling behavior to match require.resolve (throws on missing modules) and introduces a silent variant that returns null instead of throwing.
BreakingFeaturesv1.0.0
Release v1.0.0 was published on 2015-12-06, but no release notes were provided by the publisher. Because no changes are described, there is not enough documented information to identify new features, breaking changes, bug fixes, or security updates.