packageroot

1.0.1 • Public • Published

Build Status

packageroot

return the closest parent or current directory that contains a package.json

example

var packageroot = require('packageroot');
 
packageroot('./',function(err,root){
  console.log(root);
  // if im in /root/package/test it would print 
  // /root/package 
});
 
 

Readme

Keywords

Package Sidebar

Install

npm i packageroot

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.53 kB

Total Files

7

Last publish

Collaborators

  • soldair