1.1.3 • Published 8 years ago

dep-list v1.1.3

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

dep-list Build Status

Get all the dependencies for a node module.

Install

$ npm install --save dep-list

Usage

var depList = require('dep-list');

depList('yo')
.then(data => console.log(data))
.catch(err => console.error(err))


/*
{ dependencies:
   [ 'array-uniq',
     'async',
     'chalk',
     'configstore',
     'cross-spawn',
     'figures',
     'findup',
     'fullname',
     'got',
     'humanize-string',
     'inquirer',
     'insight',
     'lodash',
     'meow',
     'npm-keyword',
     'opn',
     'package-json',
     'repeating',
     'root-check',
     'sort-on',
     'string-length',
     'titleize',
     'update-notifier',
     'user-home',
     'yeoman-character',
     'yeoman-doctor',
     'yeoman-environment',
     'yosay' ],
  devDependencies:
   [ 'jshint',
     'mocha',
     'mockery',
     'nock',
     'nsp',
     'proxyquire',
     'registry-url',
     'sinon' ] }
*/

API

depList(input, opts)

input

Required
Type: file path or string

Module name or path to package.json

opts

optional

opts as in package-json module.

License

MIT © Hemanth.HM