list_requires
v1.0.2
Published
List the libraries required by some Javascript code by parsing it
Downloads
2
Readme
list_requires
List the libraries required by some Javascript code by parsing it
Install
npm install list_requires
Usage
var list_requires = require('list_requires');
var code = "a=require('foo'); b=require('bar')";
console.log(list_requires(code));
// will output ['foo', 'bar']
If you want to list calls to some function other than require
, please use list_requires_multi instead.
License
MIT
Credits
By Geza Kovacs