Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danmarshall/get-require-vars
Gets the calls to require() using node-detective plus the JavaScript variable declaration that calls them.
https://github.com/danmarshall/get-require-vars
Last synced: about 4 hours ago
JSON representation
Gets the calls to require() using node-detective plus the JavaScript variable declaration that calls them.
- Host: GitHub
- URL: https://github.com/danmarshall/get-require-vars
- Owner: danmarshall
- Created: 2015-06-03T05:46:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-03T06:57:46.000Z (over 9 years ago)
- Last Synced: 2024-04-28T01:50:31.666Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-require-vars
Gets the calls to require() using [node-detective](https://github.com/substack/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
``` js
{
requires: ['detective', 'escodegen'],
statement: 'var detective = require(\'detective\'),escodegen = require(\'escodegen\')'
}
```