package-dependencies
v1.0.1
Published
Get package.json dependencies from a Github repo
Downloads
4
Maintainers
Readme
package-dependencies
Get package.json dependencies from a Github repository
Install
npm install --save package-dependencies
Usage
const packageDependencies = require('package-dependencies');
packageDependencies.getAll('ecrmnn', 'spaceholder', '1.3.1', function (all) {
console.log(all);
//=> {dependencies: ['commander', 'random-string'], devDependencies: ['chai', 'mocha']}
});
const packageDependencies = require('package-dependencies');
packageDependencies.getDependencies('ecrmnn', 'spaceholder', '1.3.1', function (deps) {
console.log(deps);
//=> ['commander', 'random-string']
});
const packageDependencies = require('package-dependencies');
packageDependencies.getDevDependencies('ecrmnn', 'spaceholder', '1.3.1', function (devDeps) {
console.log(devDeps);
//=> ['chai', 'mocha']
});
License
MIT © Daniel Eckermann