Find the root directory of a Node.js project or npm package
MIT License
Bot releases are hidden (Show)
Published by sindresorhus 12 months ago
https://github.com/sindresorhus/pkg-dir-cli/compare/v3.0.0...v4.0.0
Published by sindresorhus about 3 years ago
https://github.com/sindresorhus/pkg-dir-cli/compare/v2.1.0...v3.0.0
Open the npm page, Yarn page, or GitHub repo of a package
Get user info of an npm user
Find the closest package.json file
Read the closest package.json file
Find a file by walking up parent directories
Get the directory of globally installed packages and binaries
Get an array of parent directories including itself
Resolve the path of a package regardless of it having an entry point
Resolve the path of a module like `require.resolve()` but from the current working directory
Get the path of the parent module
Find a file or directory by walking up parent directories — Zero dependencies
Find a file or directory by walking up parent directories
Import a module like with `require()` but from the current working directory