simple-dependencies

2.0.1 • Public • Published

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"]

Readme

Keywords

Package Sidebar

Install

npm i simple-dependencies

Weekly Downloads

1

Version

2.0.1

License

MIT

Last publish

Collaborators

  • sharongrossman