pkg-down
v0.1.0
Published
Find the topmost package.json file.
Downloads
3
Maintainers
Readme
pkg-down
Find the topmost package.json file.
Why?
- Some.
- Various.
- Reasons.
Install
npm install pkg-down --save
Usage
Get it into your program.
const pkgDown = require('pkg-down');
Find the package.json file closest to the root of the filesystem.
pkgDown().then(filepath => {
console.log(filepath); // => '/Users/sholladay/foo/package.json'
});
Contributing
See our contributing guidelines for more details.
- Fork it.
- Make a feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request.
License
Go make something, dang it.