New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

dep-list

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dep-list

Get all the dependencies of a node module.

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

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

Keywords

dependencies

FAQs

Package last updated on 26 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts