Neatly Packaged Magic

    get-require-vars

    1.0.1 • Public • Published

    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\')'
    }

    Keywords

    none

    Install

    npm i get-require-vars

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • danmarshall