Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    get-require-varspublic

    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

    6

    version

    1.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar