Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "shrinked", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Parses the shrinkwrap.json and returns the B+ tree of the dependencies.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -41,2 +41,18 @@ # shrinked [](http://badge.fury.io/js/shrinked) [](https://travis-ci.org/kaelzhang/node-shrinked) [](https://gemnasium.com/kaelzhang/node-shrinked) | ||
```js | ||
shrinked('cortex-shrinkwrap.json', { | ||
dependencyKeys: [ | ||
'dependencies', | ||
// Then `shrinked` will parse three more keys in addition. | ||
'asyncDependencies', | ||
'devDependencies', | ||
'engines' | ||
] | ||
}, function(err, tree){ | ||
if (err) { | ||
return console.error(err); | ||
} | ||
console.log('The B+ tree is', util.inspect(tree, depth: 10)); | ||
}); | ||
``` | ||
@@ -43,0 +59,0 @@ ### shrinked.parse(json, [options]) |
8895
67