{"name":"detective-cjs","version":"2.0.0","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"jscs index.js test && mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","devDependencies":{"jscs":"~2.4.0","jscs-preset-mrjoelkemp":"~1.0.0","mocha":"~2.0.1","sinon":"~1.12.2"},"dependencies":{"ast-module-types":"^2.3.2","node-source-walk":"^3.0.0"},"gitHead":"4e31629f92bafa3df9be09f5ddb3bae1474156fa","_id":"detective-cjs@2.0.0","_shasum":"dce4c9302cdca52e6b8bfd3877ca93f62c5ccc03","_from":".","_npmVersion":"3.8.0","_nodeVersion":"0.12.6","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"dist":{"shasum":"dce4c9302cdca52e6b8bfd3877ca93f62c5ccc03","tarball":"http://registry-npm.ywwl.com/detective-cjs/download/detective-cjs-2.0.0.tgz","integrity":"sha512-xn2c57Cn05aOnC3ZuyeEMW145HY7oGeyvB4J1XtsyHjkRw9hU7jsBzIjFaV1dQLtt0CuUqzA8EaVcrC4PWSYwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpiapRUu8Ny6CfKnfGHZ+smJwAnqSSqq/0x+rUC34Q7AiA0b/JyjsdH9Od19ICy5Tc8KBVPH3zLe20ziFz8cbEcfA=="}],"size":1293,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/detective-cjs-2.0.0.tgz_1466048973178_0.2885229978710413"},"directories":{},"readme":"# detective-cjs\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-detective-cjs/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/node-detective-cjs/actions/workflows/ci.yml?query=branch%3Amain)\n[![npm version](https://img.shields.io/npm/v/detective-cjs?logo=npm&logoColor=fff)](https://www.npmjs.com/package/detective-cjs)\n[![npm downloads](https://img.shields.io/npm/dm/detective-cjs)](https://www.npmjs.com/package/detective-cjs)\n\n> Get the dependencies of a CommonJS module by traversing its AST\n\n```sh\nnpm install detective-cjs\n```\n\nBut dude, substack already built this: node-detective. Yes, but I needed the capability to reuse an AST\nand this was unlikely to be merged timely. I can also support jsx and other syntactic constructs faster.\n\n## Usage\n\n```js\nconst fs = require('fs');\nconst detective = require('detective-cjs');\n\nconst mySourceCode = fs.readFileSync('myfile.js', 'utf8');\n\n// Pass in a file's content or an AST\nconst dependencies = detective(mySourceCode);\n```\n\n* Supports JSX, ES7, and any other features that [node-source-walk](https://github.com/dependents/node-source-walk) supports.\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1466048974099,"_cnpm_publish_time":1466048974099,"dist-tags":{"latest":"7.0.0"}}