lib/remote-ls.js
function RemoteLS (opts) {
  var _this = this

  _.extend(this, {
    logger: console,
    development: true, // include dev dependencies.
    optional: true, // include optional dependencies.
    peer: false, // include peer dependencies.
    verbose: false,
    registry: require('registry-url')(), // URL of registry to ls.
    queue: async.queue(function (task, done) {
      _this._loadPackageJson(task, done)
    }, 8),
    tree: {},
    flat: {}
  }, require('./config')(), opts)

  this.queue.pause()
}
function RemoteLS (opts) {
  var _this = this

  _.extend(this, {
    logger: console,
    development: true, // include dev dependencies.
    optional: true, // include optional dependencies.
    peer: false, // include peer dependencies.
    verbose: false,
    registry: require('registry-url')(), // URL of registry to ls.
    queue: async.queue(function (task, done) {
      _this._loadPackageJson(task, done)
    }, 8),
    tree: {},
    flat: {}
  }, require('./config')(), opts)

  this.queue.pause()
}
function RemoteLS ( opts ) { var _this = this _ . extend ( this , { logger : console , development : true , // include dev dependencies. optional : true , // include optional dependencies. peer : false , // include peer dependencies. verbose : false , registry : require ( 'registry-url' ) ( ) , // URL of registry to ls. queue : async . queue ( function ( task , done ) { _this . _loadPackageJson ( task , done ) } , 8 ) , tree : { } , flat : { } } , require ( './config' ) ( ) , opts ) this . queue . pause ( ) }
perform a recursive walk of a remote npm package and determine its dependency tree.
perform a recursive walk of a remote npm package and determine its dependency tree .