resolve-cwd
npmv3.0.0Resolve the path of a module like `require.resolve()` but from the current working directory
Overview
resolve-cwd is an npm package that resolve the path of a module like `require.resolve()` but from the current working directory. The latest version is 3.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need resolve the path of a module like `require.resolve()` but from the current working directory and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of resolve-cwd.
Dependencies
Runtime (1)
Dev (3)
Used by
Popular packages that depend on resolve-cwd.
Alternatives to resolve-cwd
Resolve the path of a module like `require.resolve()` but from a given path
Find the root directory of a Node.js project or npm package
Find a file or directory by walking up parent directories
Let a globally installed package use a locally installed version of itself if available
Tomorrow's ECMAScript modules today!
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Get paths for storing things like data, config, cache, etc
Extract the non-magic parent path from a glob string.
A tiny (183B to 210B) and fast utility to ascend parent directories
Prepare a node environment to require files with different extensions.
Convert Windows backslash paths to slash paths
The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s
Frequently installed together
Version history
| Version | Published | License |
|---|---|---|
| 3.0.0latest | 7 years ago | MIT |
| 2.0.0 | 9 years ago | MIT |
| 1.0.0 | 10 years ago | MIT |
Maintainers
Frequently asked questions
How do I install resolve-cwd?
Run `npm install resolve-cwd` to add resolve-cwd to your npm project.
What license is resolve-cwd released under?
resolve-cwd is distributed under the MIT license.
How popular is resolve-cwd?
resolve-cwd has approximately 0 downloads per week and 1 known dependent packages.