scan-dependencies

1.0.0 • Public • Published

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.

/scan-dependencies/

    Package Sidebar

    Install

    npm i scan-dependencies

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • vdemedes