shrinked
Parses the shrinkwrap.json and returns the B+ tree of the dependencies.
<name>: <version>: dependencies: <dep-name>: <dep-range>: <dep-version> asyncDependencies: ... devDependencies: ...
Install
$ npm install shrinked --save
Usage
var shrinked = ;
shrinked(file, [options], callback)
- file
path
Absolute path of the xxx-shrinkwrap.json - callback
function(err, tree)
- err
Error
- tree
Object
the B+ tree of dependencies which described above. - options
Object
- dependencyKeys
Array=['dependencies']
into which dependency key shouldshrinked
decende down.
- dependencyKeys
;
shrinked.parse(json, [options])
- json
Object
the object of shrinkwrap.json
Returns tree
License
MIT