2.0.0 • Published 8 years ago
get-ideal-package-tree v2.0.0
get-ideal-package-tree
Given a list of packages, returns a JSON representation of the ideal package tree - like how npm@3 would install it.
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install get-ideal-package-tree --save
Usage
/* eslint-disable import/no-extraneous-dependencies */
import getIdealPackageTree from 'get-ideal-package-tree';
getIdealPackageTree(['browserify', 'watchify'])
.then(tree => {
console.log('ideal dependency tree', tree);
})
.catch(err => {
console.error(err);
});
/*
There's also a CLI available:
$ get-ideal-package-tree browserify watchify
*/
Tests
npm install
npm test
Dependencies
- get-pkg-json: Get a package.json, from either a npm registry or github
- immutable-object-methods: Update normal plain javascript object, immutable style. Simlar to how immutable.js, seamless-immutable etc does it but a lot smaller and simpler.
- object.entries: ES7 spec-compliant Object.entries shim.
Dev Dependencies
- babel-cli: Babel command line.
- babel-core: Babel compiler core.
- babel-preset-es2015-node5: Babel preset to make node@5 fully ES2015 compatible.
- babel-tape-runner: Babel + Tape for running your ES Next tests
- npm-package-arg: Parse the things that can be arguments to
npm install
- package-json-to-readme: Generate a README.md from package.json contents
- tapava: the syntax of ava, run through tape
- xo: JavaScript happiness style linter ❤️
License
MIT
Generated by package-json-to-readme