list_requires_multi
v1.0.2
Published
List the libraries required by some Javascript code by parsing it
Downloads
5
Readme
list_requires_multi
List the libraries required by some Javascript code by parsing it
Install
npm install list_requires_multi
Usage
var list_requires_multi = require('list_requires_multi');
var code = "a=require('foo'); b=require('bar')";
console.log(list_requires_multi(code), ['require']);
// will output {'require': ['foo', 'bar']}
License
MIT
Credits
By Geza Kovacs