package-to-dependency-stream

Create a stream of dependency objects from a package.json

package-to-dependency-stream

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] }
*/

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

MIT