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
Get the directory of globally installed packages and binaries
Find a file by walking up parent directories
Find the closest package.json file
Find a file or directory by walking up parent directories
Resolve the path of a module like `require.resolve()` but from the current working directory
Resolve the path of a package regardless of it having an entry point
Get an array of parent directories including itself
Find a file or directory by walking up parent directories — Zero dependencies
Read the closest package.json file
Get user info of an npm user
Open the npm page, Yarn page, or GitHub repo of a package
Get the path of the parent module
Import a module like with `require()` but from the current working directory