Cortex Shrinkwrap
This command will lock down the versions of a package's dependencies and generate a cortex-shrinkwrap.json
file in your package directory.
Install
npm install cortex-shrinkwrap -g
Usage
cortex shrinkwrap [--dev] [--async|--no-async]
See more info by:
cortex shrinkwrap -h
API
Also this lib can be used in nodejs.
var shrinkwrap = require('cortex-shrinkwrap');
shrinkwrap(pkg, options, function(err, shrinked) {
});
pkg
Pakcage information stored in cortex.json.
Options
- dev: whehter include
devDependencies
- async: whether incldue
asyncDependencies
License
(The MIT License)
Copyright (c) 2014, Villa.Gao <jky239@gmail.com>;
All rights reserved.