0.1.0 • Published 8 years ago
pkg-down v0.1.0
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.
0.1.0
8 years ago