{"_id":"requires-regex","_rev":"4175212","name":"requires-regex","description":"Regular expression for matching javascript require statements.","dist-tags":{"latest":"1.0.4"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2026-03-01T21:29:52.000Z","created":"2014-09-20T07:46:38.677Z","1.0.4":"2018-04-15T17:57:54.618Z","1.0.3":"2018-04-15T16:35:16.750Z","1.0.2":"2018-04-15T16:19:23.281Z","1.0.1":"2018-04-15T16:13:14.830Z","1.0.0":"2018-04-15T15:52:14.086Z","0.3.3":"2016-01-08T05:37:42.186Z","0.3.2":"2016-01-08T04:28:36.222Z","0.3.1":"2015-10-02T17:45:49.108Z","0.3.0":"2015-08-19T06:04:20.793Z","0.2.0":"2014-11-21T13:49:57.062Z","0.1.2":"2014-11-17T12:25:14.987Z","0.1.1":"2014-09-20T07:49:39.743Z","0.1.0":"2014-09-20T07:46:38.677Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/requires-regex.git"},"versions":{"1.0.4":{"name":"requires-regex","description":"Regular expression for matching javascript require statements.","version":"1.0.4","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["dependencies","dependency","devDependencies","devDependency","exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["lint-deps","match-requires","regex-cache"]},"lint":{"reflinks":true}},"gitHead":"9288a933d936b5cb20b112b847b5c8343abfc23e","_id":"requires-regex@1.0.4","_npmVersion":"5.8.0","_nodeVersion":"9.9.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"31b516068dfe68307865a6ea8c34281147bc44a8","size":3213,"noattachment":false,"key":"/requires-regex/-/requires-regex-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-1.0.4.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/requires-regex_1.0.4_1523815074510_0.4910538617627396"},"_hasShrinkwrap":false,"publish_time":1523815074618,"_cnpm_publish_time":1523815074618,"_cnpmcore_publish_time":"2021-12-17T03:41:47.193Z"},"1.0.3":{"name":"requires-regex","description":"Regular expression for matching javascript require statements.","version":"1.0.3","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["dependencies","dependency","devDependencies","devDependency","exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["lint-deps","match-requires","regex-cache"]},"lint":{"reflinks":true}},"gitHead":"04de6d335bdc033872448ece7f1b912dd99b83e4","_id":"requires-regex@1.0.3","_npmVersion":"5.8.0","_nodeVersion":"9.9.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"22a6359b9f3862c2996e3a8a85170b17dbc1b4b2","size":3170,"noattachment":false,"key":"/requires-regex/-/requires-regex-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-1.0.3.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/requires-regex_1.0.3_1523810116605_0.028297623924326443"},"_hasShrinkwrap":false,"publish_time":1523810116750,"_cnpm_publish_time":1523810116750,"_cnpmcore_publish_time":"2021-12-17T03:41:47.428Z"},"1.0.2":{"name":"requires-regex","description":"Regular expression for matching javascript require statements.","version":"1.0.2","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["dependencies","dependency","devDependencies","devDependency","exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["lint-deps","match-requires","regex-cache"]},"lint":{"reflinks":true}},"gitHead":"0251fd8502b48dd877e09513607107024fcea2bf","_id":"requires-regex@1.0.2","_npmVersion":"5.8.0","_nodeVersion":"9.9.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"2b7c247b4a6d817e8ffb4cc32e6d509c0f7a1d95","size":3170,"noattachment":false,"key":"/requires-regex/-/requires-regex-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-1.0.2.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/requires-regex_1.0.2_1523809163023_0.7667009870115007"},"_hasShrinkwrap":false,"publish_time":1523809163281,"_cnpm_publish_time":1523809163281,"_cnpmcore_publish_time":"2021-12-17T03:41:47.646Z"},"1.0.1":{"name":"requires-regex","description":"Regular expression for matching javascript require statements.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["dependencies","dependency","devDependencies","devDependency","exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["lint-deps","match-requires","regex-cache"]},"lint":{"reflinks":true}},"gitHead":"b8efbc50a063b77efc2a060f34e993641153a071","_id":"requires-regex@1.0.1","_npmVersion":"5.8.0","_nodeVersion":"9.9.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"a1b3bdbb3e0d8f0be88bc50a3c54a2ae0ae4fdf7","size":3168,"noattachment":false,"key":"/requires-regex/-/requires-regex-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-1.0.1.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/requires-regex_1.0.1_1523808794734_0.8424349119365766"},"_hasShrinkwrap":false,"publish_time":1523808794830,"_cnpm_publish_time":1523808794830,"_cnpmcore_publish_time":"2021-12-17T03:41:47.839Z"},"1.0.0":{"name":"requires-regex","description":"Regular expression for matching javascript require statements.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["dependencies","dependency","devDependencies","devDependency","exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["lint-deps","match-requires","regex-cache"]},"lint":{"reflinks":true}},"gitHead":"273276a097c8dbc53b01fe141930f47bbd58545a","_id":"requires-regex@1.0.0","_npmVersion":"5.8.0","_nodeVersion":"9.9.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"5a003affbaa7bc7e7740f4ecbf0025b8081215b3","size":3155,"noattachment":false,"key":"/requires-regex/-/requires-regex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-1.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/requires-regex_1.0.0_1523807533988_0.3604829909350573"},"_hasShrinkwrap":false,"publish_time":1523807534086,"_cnpm_publish_time":1523807534086,"_cnpmcore_publish_time":"2021-12-17T03:41:48.061Z"},"0.3.3":{"name":"requires-regex","description":"Regular expression for matching javascript require statements.","version":"0.3.3","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"keywords":["exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"verb":{"related":{"list":["lint-deps","match-requires","regex-cache"]},"layout":"default","plugins":["gulp-format-md"]},"gitHead":"29183dc5846748f6c9435a67ffb766fb44df4e44","_id":"requires-regex@0.3.3","_shasum":"60309eaabbfd5ca8259e090b8b5a94b2144eb0dd","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"60309eaabbfd5ca8259e090b8b5a94b2144eb0dd","size":2226,"noattachment":false,"key":"/requires-regex/-/requires-regex-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-0.3.3.tgz"},"directories":{},"publish_time":1452231462186,"_hasShrinkwrap":false,"_cnpm_publish_time":1452231462186,"_cnpmcore_publish_time":"2021-12-17T03:41:48.270Z"},"0.3.2":{"name":"requires-regex","description":"Regular expression for matching javascript require statements.","version":"0.3.2","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"keywords":["exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"verb":{"related":{"list":["lint-deps","match-requires","regex-cache"]},"layout":"default","plugins":["gulp-format-md"]},"gitHead":"29183dc5846748f6c9435a67ffb766fb44df4e44","_id":"requires-regex@0.3.2","_shasum":"f9aa9ac099952a15fa3069c1345c9aeb58dedb07","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f9aa9ac099952a15fa3069c1345c9aeb58dedb07","size":2219,"noattachment":false,"key":"/requires-regex/-/requires-regex-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-0.3.2.tgz"},"directories":{},"publish_time":1452227316222,"_hasShrinkwrap":false,"_cnpm_publish_time":1452227316222,"_cnpmcore_publish_time":"2021-12-17T03:41:48.485Z"},"0.3.1":{"name":"requires-regex","description":"Regular expression for matching javascript require statements.","version":"0.3.1","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"verb":{"related":{"list":["regex-cache","lint-deps","match-requires"]}},"gitHead":"7ea47953b886a9b28feb9ddfa426a6219a735847","_id":"requires-regex@0.3.1","_shasum":"5b3bde4310afcc2c5abe7a4b8e54443f50f61b12","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5b3bde4310afcc2c5abe7a4b8e54443f50f61b12","size":2145,"noattachment":false,"key":"/requires-regex/-/requires-regex-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-0.3.1.tgz"},"directories":{},"publish_time":1443807949108,"_hasShrinkwrap":false,"_cnpm_publish_time":1443807949108,"_cnpmcore_publish_time":"2021-12-17T03:41:48.712Z"},"0.3.0":{"name":"requires-regex","description":"Regular expression for matching javascript require statements.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"verb":{"related":{"list":["regex-cache","lint-deps","match-requires"]}},"gitHead":"139f9a1929780002f8cdfe5c5a0ad043b36ed2f6","_id":"requires-regex@0.3.0","_shasum":"a66d0336183359f07fc8e9404fc23789666dcc88","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a66d0336183359f07fc8e9404fc23789666dcc88","size":2119,"noattachment":false,"key":"/requires-regex/-/requires-regex-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-0.3.0.tgz"},"directories":{},"publish_time":1439964260793,"_hasShrinkwrap":false,"_cnpm_publish_time":1439964260793,"_cnpmcore_publish_time":"2021-12-17T03:41:48.899Z"},"0.2.0":{"name":"requires-regex","description":"Regular expressions for matching node.js require statements.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/requires-regex/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4"},"keywords":["analyze","ast","code","exec","exports","expression","expressions","find","local","match","matcher","matches","matching","module","modules","path","paths","re","regex","regexp","regular","require","requires","source","statement","test"],"_id":"requires-regex@0.2.0","_shasum":"16c418ba3edfe49c845e8386b94d7745eeb2b722","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"16c418ba3edfe49c845e8386b94d7745eeb2b722","size":2906,"noattachment":false,"key":"/requires-regex/-/requires-regex-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-0.2.0.tgz"},"directories":{},"publish_time":1416577797062,"_hasShrinkwrap":false,"_cnpm_publish_time":1416577797062,"_cnpmcore_publish_time":"2021-12-17T03:41:49.097Z"},"0.1.2":{"name":"requires-regex","description":"Regular expressions for matching node.js require statements.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/requires-regex/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4"},"keywords":["analyze","ast","code","exec","exports","expression","expressions","find","local","match","matcher","matches","matching","module","modules","path","paths","re","regex","regexp","regular","require","requires","source","statement","test"],"_id":"requires-regex@0.1.2","_shasum":"a4583956018d749a2088bbe1f1dbb7a64bbeb4ab","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a4583956018d749a2088bbe1f1dbb7a64bbeb4ab","size":2885,"noattachment":false,"key":"/requires-regex/-/requires-regex-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-0.1.2.tgz"},"directories":{},"publish_time":1416227114987,"_hasShrinkwrap":false,"_cnpm_publish_time":1416227114987,"_cnpmcore_publish_time":"2021-12-17T03:41:49.329Z"},"0.1.1":{"name":"requires-regex","description":"Regular expressions for node.js require statements.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/requires-regex/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"keywords":["analyze","ast","code","exec","exports","expression","expressions","find","local","match","matcher","matches","matching","module","modules","path","paths","re","regex","regexp","regular","require","requires","source","statement","test"],"_id":"requires-regex@0.1.1","_shasum":"ff7fcf62875072ac2d48cdab1b3f53089399d94e","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ff7fcf62875072ac2d48cdab1b3f53089399d94e","size":2882,"noattachment":false,"key":"/requires-regex/-/requires-regex-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-0.1.1.tgz"},"directories":{},"publish_time":1411199379743,"_hasShrinkwrap":false,"_cnpm_publish_time":1411199379743,"_cnpmcore_publish_time":"2021-12-17T03:41:49.606Z"},"0.1.0":{"name":"requires-regex","description":"Regular expressions for node.js require statements.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/requires-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/requires-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/requires-regex/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"keywords":["analyze","ast","code","exec","exports","expression","expressions","find","local","match","matcher","matches","matching","module","modules","path","paths","re","regex","regexp","regular","require","requires","source","statement","test"],"_id":"requires-regex@0.1.0","_shasum":"47c81919b7b7f6c0d79053a6943094f0c8d8e567","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"47c81919b7b7f6c0d79053a6943094f0c8d8e567","size":2802,"noattachment":false,"key":"/requires-regex/-/requires-regex-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/requires-regex/download/requires-regex-0.1.0.tgz"},"directories":{},"publish_time":1411199198677,"_hasShrinkwrap":false,"_cnpm_publish_time":1411199198677,"_cnpmcore_publish_time":"2021-12-17T03:41:49.834Z"}},"readme":"# requires-regex [![NPM version](https://img.shields.io/npm/v/requires-regex.svg?style=flat)](https://www.npmjs.com/package/requires-regex) [![NPM monthly downloads](https://img.shields.io/npm/dm/requires-regex.svg?style=flat)](https://npmjs.org/package/requires-regex) [![NPM total downloads](https://img.shields.io/npm/dt/requires-regex.svg?style=flat)](https://npmjs.org/package/requires-regex) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/requires-regex.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/requires-regex)\n\n> Regular expression for matching javascript require statements.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save requires-regex\n```\n\n## Usage\n\nTHe main export is a function that must be called. This ensures that a new regex is returned each time the function is called.\n\n```js\nconst regex = require('requires-regex')();\nconst match = regex.exec('const foo = require(\\'@bar/baz\\');');\n\nconsole.log(match);\n// [ 'const foo = require(\\'@bar/baz\\');',\n//   undefined,\n//   'foo',\n//   '\\'',\n//   '@bar/baz',\n//   'bar',\n//   'baz',\n//   index: 0,\n//   input: 'const foo = require(\\'@bar/baz\\');' ]\n```\n\n**Match results**\n\n* `0` - the full match\n* `1` - require statements inside quoted strings, otherwise undefined.\n* `2` - variable name before `require()`, if defined, otherwise undefined\n* `3` - leading quote inside `require()`, this is used as a reference to match ends on a trailing quote of the same type\n* `4` - the full name inside the `require()` statement. For example, in `require(\"@foo/bar\")`, the full name is `@foo/bar`.\n* `5` - the first segment of a scoped name. For example, `foo` in `@foo/bar`. Otherwise undefined.\n* `6` - the second segment of a scoped name. For example, `bar` in `@foo/bar`. Otherwise undefined.\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [lint-deps](https://www.npmjs.com/package/lint-deps): CLI tool that tells you when dependencies are missing from package.json and offers you a… [more](https://github.com/jonschlinkert/lint-deps) | [homepage](https://github.com/jonschlinkert/lint-deps \"CLI tool that tells you when dependencies are missing from package.json and offers you a choice to install them. Also tells you when dependencies are listed in package.json but are not being used anywhere in your project. Node.js command line tool and API\")\n* [match-requires](https://www.npmjs.com/package/match-requires): Match require statements in a string. Returns an array of matching require statements. Each match… [more](https://github.com/jonschlinkert/match-requires) | [homepage](https://github.com/jonschlinkert/match-requires \"Match require statements in a string. Returns an array of matching require statements. Each match is an object with line number, variable name, and module name. Statements in code comments are ignored.\")\n* [regex-cache](https://www.npmjs.com/package/regex-cache): Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of… [more](https://github.com/jonschlinkert/regex-cache) | [homepage](https://github.com/jonschlinkert/regex-cache \"Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulting in surprising performance improvements.\")\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 22 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [alvinsight](https://github.com/alvinsight) |\n\n### Author\n\n**Jon Schlinkert**\n\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on April 15, 2018._","_attachments":{},"homepage":"https://github.com/jonschlinkert/requires-regex","bugs":{"url":"https://github.com/jonschlinkert/requires-regex/issues"},"license":"MIT"}