2.0.0 • Published 8 years ago

get-ideal-package-tree v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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

License

MIT

Generated by package-json-to-readme

2.0.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago