requires-regex
Regular expressions for node.js require statements.
Install
Install with npm
npm i requires-regex --save
Run tests
npm test
Usage
var re = require('requires-regex');
re().exec('var isDir = require(\'is-directory\');');
'var path = require(\'path\');\nvar list = require(\'dirs\');'.match(re());
re().test('require(\'foo\');');
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on September 20, 2014.