Socket
Book a DemoInstallSign in
Socket

scan-dependencies

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scan-dependencies

Search for require() recursively

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

scan-dependencies Circle CI

Search recursively for require() calls to build a complete dependency tree. It skips core modules and reports only 3rd-party ones.

Installation

$ npm install scan-dependencies --save

Usage

const scan = require('scan-dependencies');

// specify an entrypoint
// it will walk recursively starting from it
let deps = scan('entrypoint.js');

/*
deps = [
  'koa',
  'express',
  'request'
]
 */

Tests

Circle CI

$ make test

License

scan-dependencies is released under the MIT license.

Keywords

dependencies

FAQs

Package last updated on 29 Jul 2015

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