list_requires_multi

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i list_requires_multi

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • geza