Repository URL to install this package:
|
Version:
0.6.0 ▾
|
| .. |
| README.md |
| index.js |
| package.json |
Regular expression for matching javascript require statements.
Install with npm
$ npm i deps-regex --save
var DepsRegex = require('deps-regex'); var re = new DepsRegex({ matchInternal: true, matchES6: true, matchCoffeescript: true }) re.getDependencies('var foo = require(\'bar\');'); //=> // [ 'bar']
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Released under the MIT license.