Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gkovacs/list_requires_multi

List the libraries required by some Javascript code by parsing it
https://github.com/gkovacs/list_requires_multi

commonjs javascript parsing

Last synced: 7 days ago
JSON representation

List the libraries required by some Javascript code by parsing it

Awesome Lists containing this project

README

        

# list_requires_multi

List the libraries required by some Javascript code by parsing it

## Install

```
npm install list_requires_multi
```

## Usage

```javascript
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](https://github.com/gkovacs)