Fetch a dependency version tree for a package
:rocket: Are you ready to tackle ES6 and hone your JavaScript Skills? :rocket:
Check out these outstanding ES6 courses by @wesbos
* nvm-version-tree requires Babel, or Node v7+ and Harmonica, or Node v7.6+
Install
$ npm install npm-version-tree
Usage
Package Name
const vertree = ; async { let tree = await vertree;}; // tree => {// async: [ { semver: '~1.0.0', version: '1.0.0', parent: 'winston' } ],// colors: [ { semver: '1.0.x', version: '1.0.0', parent: 'winston' } ],// cycle: [ { semver: '1.0.x', version: '1.0.0', parent: 'winston' } ],// eyes: [ { semver: '0.1.x', version: '0.1.1', parent: 'winston' } ],// isstream: [ { semver: '0.1.x', version: '0.1.0', parent: 'winston' } ],// 'stack-trace': [ { semver: '0.0.x', version: '0.0.1', parent: 'winston' } ],// winston: [ { semver: '2.3.1', version: '2.3.1', parent: null } ]// }
Package Object
const vertree = ;const pkg = ; vertree;
fetch(what)
what
A String
representing a package name, or Object
representing a package. If
a package Object
is passed, the package must have a version
property.
License
MIT © Andrew Powell