resolve-package-json

1.4.0 • Public • Published

resolve-package-json

Resolve package.json dependency versions

Installation

$ npm install --save resolve-package-json

Usage

const { resolver } = require('resolve-package-json')
const pkg = require('./package.json')
 
resolver(pkg.dependencies, function (err, result) {
  if (err) throw err
 
  console.log(result)
})

Acknowledgements

Dependency resolution algorithm is inspired from dep

Authors and Contributors

Julián DuqueGitHub/julianduqueTwitter/@julian_duque

Contributions are welcomed from anyone wanting to improve this project!

License & Copyright

nscm is Copyright (c) 2017 NodeSource and licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.

Package Sidebar

Install

npm i resolve-package-json

Weekly Downloads

1,838

Version

1.4.0

License

MIT

Unpacked Size

15 kB

Total Files

15

Last publish

Collaborators

  • julianduque
  • nodesrc