{"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","tarball":"http://registry-npm.ywwl.com/deps-regex/download/deps-regex-0.1.0.tgz","integrity":"sha512-kBrR2iysD/NHDcXxuu1TogYm19zTYzINZ/g4Z+LeomeHp4QiyO4s4w4Vbo5/wnfXY5ZGbDZ+PkpvWJnjlhhYVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDul3rnWl8yqCP/MxTAXcskUxisu68CjOjMJGMzGPTcWgIgPRcNeGtIBQtCy1vq2HSfUBKfhTosEizAiQKuiwgxnvU="}],"size":1252,"noattachment":false,"key":"/deps-regex/-/deps-regex-0.1.0.tgz"},"maintainers":[{"name":"mathieudutour","email":"mathieu@dutour.me"}],"directories":{},"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","publish_time":1444988542517,"_cnpm_publish_time":1444988542517,"dist-tags":{"latest":"0.2.0"}}