2.0.1 • Published 8 years ago

simple-dependencies v2.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

simple-dependencies Build Status

Get the dependencies and devDependencies of a package.json in an array

Usage

const getDeps = require('simple-dependencies');

getDeps('./package.json')
.then(data => {
		console.log(data);
	});

Output

For this package.json:

{
	dependencies: {
		"x": "0.0.0",
		"y": "0.0.0"
	},
	devDependencies: {
		"z": "0.0.0",
		"w": "0.0.0"
	}
}

The output will be:

["x", "y", "z", "w"]