{"_id":"deps-regex","_rev":"1014364","name":"deps-regex","description":"Regular expression for matching javascript require/import statements.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"mathieudutour","email":"mathieu@dutour.me"}],"time":{"modified":"2021-09-28T12:15:59.000Z","created":"2015-10-16T09:42:22.517Z","0.2.0":"2021-09-28T12:14:23.630Z","0.1.4":"2015-10-16T15:29:25.183Z","0.1.3":"2015-10-16T15:24:54.828Z","0.1.2":"2015-10-16T15:04:25.837Z","0.1.1":"2015-10-16T09:53:35.645Z","0.1.0":"2015-10-16T09:42:22.517Z"},"users":{},"author":{"name":"Mathieu Dutour","email":"mathieu@dutour.me"},"repository":{"type":"git","url":"git+https://github.com/mathieudutour/deps-regex.git"},"versions":{"0.2.0":{"name":"deps-regex","description":"Regular expression for matching javascript require/import statements.","version":"0.2.0","homepage":"https://github.com/mathieudutour/deps-regex","author":{"name":"Mathieu Dutour","email":"mathieu@dutour.me"},"repository":{"type":"git","url":"git+https://github.com/mathieudutour/deps-regex.git"},"bugs":{"url":"https://github.com/mathieudutour/deps-regex/issues"},"license":"MIT","main":"index.js","types":"index.d.ts","scripts":{"test":"mocha","lint":"eslint .","generate-types":"tsc index.js --declaration --allowJs --emitDeclarationOnly"},"devDependencies":{"eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","mocha":"*","prettier":"^2.4.1","should":"*","typescript":"^4.4.3"},"keywords":["exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"gitHead":"4932b91bb04a80b560da9bc9f9b6139bca36a8ce","_id":"deps-regex@0.2.0","_nodeVersion":"14.15.1","_npmVersion":"7.7.3","dist":{"shasum":"3ee7ddae5fd784f3accf29d5a711aa6e10044137","size":2072,"noattachment":false,"key":"/deps-regex/-/deps-regex-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deps-regex/download/deps-regex-0.2.0.tgz"},"_npmUser":{"name":"mathieudutour","email":"mathieu@dutour.me"},"directories":{},"maintainers":[{"name":"mathieudutour","email":"mathieu@dutour.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deps-regex_0.2.0_1632831263475_0.7386013013533059"},"_hasShrinkwrap":false,"publish_time":1632831263630,"_cnpm_publish_time":1632831263630},"0.1.4":{"name":"deps-regex","description":"Regular expression for matching javascript require statements.","version":"0.1.4","homepage":"https://github.com/mathieudutour/deps-regex","author":{"name":"Mathieu Dutour","email":"mathieu@dutour.me"},"repository":{"type":"git","url":"git+https://github.com/mathieudutour/deps-regex.git"},"bugs":{"url":"https://github.com/mathieudutour/deps-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","eslint":"^1.6.0"},"keywords":["exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"gitHead":"601e24f47de489bc98640fd2e3b85692de9bc080","_id":"deps-regex@0.1.4","_shasum":"518667b7691460a5e7e0a341be76eb7ce8090184","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mathieudutour","email":"mathieu@dutour.me"},"dist":{"shasum":"518667b7691460a5e7e0a341be76eb7ce8090184","size":1299,"noattachment":false,"key":"/deps-regex/-/deps-regex-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/deps-regex/download/deps-regex-0.1.4.tgz"},"maintainers":[{"name":"mathieudutour","email":"mathieu@dutour.me"}],"directories":{},"publish_time":1445009365183,"_cnpm_publish_time":1445009365183,"_hasShrinkwrap":false},"0.1.3":{"name":"deps-regex","description":"Regular expression for matching javascript require statements.","version":"0.1.3","homepage":"https://github.com/mathieudutour/deps-regex","author":{"name":"Mathieu Dutour","email":"mathieu@dutour.me"},"repository":{"type":"git","url":"git+https://github.com/mathieudutour/deps-regex.git"},"bugs":{"url":"https://github.com/mathieudutour/deps-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","eslint":"^1.6.0"},"keywords":["exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"gitHead":"36b03bb3ed34a2d00991c23c8abf4076de4b4d11","_id":"deps-regex@0.1.3","_shasum":"738e62100187b704736f06ed8c3816d04ceee592","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mathieudutour","email":"mathieu@dutour.me"},"dist":{"shasum":"738e62100187b704736f06ed8c3816d04ceee592","size":1298,"noattachment":false,"key":"/deps-regex/-/deps-regex-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/deps-regex/download/deps-regex-0.1.3.tgz"},"maintainers":[{"name":"mathieudutour","email":"mathieu@dutour.me"}],"directories":{},"publish_time":1445009094828,"_cnpm_publish_time":1445009094828,"_hasShrinkwrap":false},"0.1.2":{"name":"deps-regex","description":"Regular expression for matching javascript require statements.","version":"0.1.2","homepage":"https://github.com/mathieudutour/deps-regex","author":{"name":"Mathieu Dutour","email":"mathieu@dutour.me"},"repository":{"type":"git","url":"git+https://github.com/mathieudutour/deps-regex.git"},"bugs":{"url":"https://github.com/mathieudutour/deps-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","eslint":"^1.6.0"},"keywords":["exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"gitHead":"1b967d6dc88d9fc81ba4e13dc82073882267dbf4","_id":"deps-regex@0.1.2","_shasum":"38151a2a3f18fcef94777bb9fddc23b40bf52e65","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mathieudutour","email":"mathieu@dutour.me"},"dist":{"shasum":"38151a2a3f18fcef94777bb9fddc23b40bf52e65","size":1262,"noattachment":false,"key":"/deps-regex/-/deps-regex-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/deps-regex/download/deps-regex-0.1.2.tgz"},"maintainers":[{"name":"mathieudutour","email":"mathieu@dutour.me"}],"directories":{},"publish_time":1445007865837,"_cnpm_publish_time":1445007865837,"_hasShrinkwrap":false},"0.1.1":{"name":"deps-regex","description":"Regular expression for matching javascript require statements.","version":"0.1.1","homepage":"https://github.com/mathieudutour/deps-regex","author":{"name":"Mathieu Dutour","email":"mathieu@dutour.me"},"repository":{"type":"git","url":"git+https://github.com/mathieudutour/deps-regex.git"},"bugs":{"url":"https://github.com/mathieudutour/deps-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","eslint":"^1.6.0"},"keywords":["exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"gitHead":"e7e29cc6397ee3167e6a44d5aae3a05cefaaa999","_id":"deps-regex@0.1.1","_shasum":"343e9973da9f0196a6c441972766b85f8137bf92","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mathieudutour","email":"mathieu@dutour.me"},"dist":{"shasum":"343e9973da9f0196a6c441972766b85f8137bf92","size":1261,"noattachment":false,"key":"/deps-regex/-/deps-regex-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/deps-regex/download/deps-regex-0.1.1.tgz"},"maintainers":[{"name":"mathieudutour","email":"mathieu@dutour.me"}],"directories":{},"publish_time":1444989215645,"_cnpm_publish_time":1444989215645,"_hasShrinkwrap":false},"0.1.0":{"name":"deps-regex","description":"Regular expression for matching javascript require statements.","version":"0.1.0","homepage":"https://github.com/mathieudutour/deps-regex","author":{"name":"Mathieu Dutour","email":"mathieu@dutour.me"},"repository":{"type":"git","url":"git+https://github.com/mathieudutour/deps-regex.git"},"bugs":{"url":"https://github.com/mathieudutour/deps-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","eslint":"^1.6.0"},"keywords":["exec","expression","expressions","find","match","matcher","matches","matching","module","modules","re","regex","regexp","regular","require","requires","statement","test"],"gitHead":"6716cdd5cebcb9cbe5d54f441bbcd56a5c4d9966","_id":"deps-regex@0.1.0","_shasum":"dab9b34cfdee424d19caef2f7be2e3f0759154b4","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mathieudutour","email":"mathieu@dutour.me"},"dist":{"shasum":"dab9b34cfdee424d19caef2f7be2e3f0759154b4","size":1252,"noattachment":false,"key":"/deps-regex/-/deps-regex-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deps-regex/download/deps-regex-0.1.0.tgz"},"maintainers":[{"name":"mathieudutour","email":"mathieu@dutour.me"}],"directories":{},"publish_time":1444988542517,"_cnpm_publish_time":1444988542517,"_hasShrinkwrap":false}},"readme":"# deps-regex\n\n> Regular expression for matching javascript require/import statements.\n\nThis is pretty fragile and created for perf reasons where using a real parser would be overkill.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\nnpm install --save deps-regex\n```\n\n## Usage\n\n```js\nvar DepsRegex = require(\"deps-regex\");\nvar re = new DepsRegex({\n  matchInternal: true,\n  matchES6: true,\n  matchCoffeescript: true,\n});\n\nre.getDependencies(\"var foo = require('bar');\");\n// => [ 'bar']\n```\n\n## Known false positives\n\n```js\nmodule.exports = 'require(\"false-positive\");';\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/mathieudutour/deps-regex/issues/new).\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\nnpm install && npm test\n```\n\n## License\n\nReleased under the MIT license.\n","_attachments":{},"homepage":"https://github.com/mathieudutour/deps-regex","bugs":{"url":"https://github.com/mathieudutour/deps-regex/issues"},"license":"MIT"}