1.0.0 • Published 10 years ago
scan-dependencies v1.0.0
scan-dependencies 
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 --saveUsage
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
$ make testLicense
scan-dependencies is released under the MIT license.
1.0.0
10 years ago