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

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

2

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability