get-require-vars
v1.0.1
Published
Gets the calls to require() using node-detective plus the JavaScript variable declaration that calls them.
Downloads
7
Readme
get-require-vars
Gets the calls to require() using node-detective plus the JavaScript variable declaration that calls them.
Install
Clone this repo, then run:
npm install
Example
node example/test.js index.js
outputs
{
requires: ['detective', 'escodegen'],
statement: 'var detective = require(\'detective\'),escodegen = require(\'escodegen\')'
}