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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    3
  • 2.0.0
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i simple-dependencies

Weekly Downloads

3

Version

2.0.1

License

MIT

Last publish

Collaborators

  • sharongrossman