npm

Need private packages and team management tools?Check out npm Orgs. »

deps-regex

0.1.4 • Public • Published

deps-regex

Regular expression for matching javascript require statements.

Install

Install with npm

$ npm i deps-regex --save

Usage

var DepsRegex = require('deps-regex');
var re = new DepsRegex({
  matchInternal: true,
  matchES6: true,
  matchCoffeescript: true
})
 
re.getDependencies('var foo = require(\'bar\');');
//=>
// [ 'bar']
 

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

License

Released under the MIT license.

install

npm i deps-regex

Downloadsweekly downloads

94,583

version

0.1.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability