package-to-dependency-stream

Create a stream of dependency objects from a package.json

npm install package-to-dependency-stream
2 downloads in the last week
8 downloads in the last month

package-to-dependency-stream

Synopsis

var packageToDependencyStream = require('create-dependency-stream')
var pkg = require('./package.json')
packageToDependencyStream(pkg).on('data', console.log)
/*
{ name: 'from',
  versionRange: '~0.1.3',
  parent: [Object] }
*/

Description

Creates a stream of dependency objects from a parsed package.json file.

License

MIT

npm loves you