{"name":"detective-es6","version":"1.0.2","description":"Get the dependencies of an es6 module","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-detective-es6.git"},"keywords":["detective","es6","dependencies","module","ast"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-es6/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-es6","dependencies":{"node-source-walk":"~1.3.0"},"devDependencies":{"mocha":"~2.0.1"},"gitHead":"97de16ced7235cc3037b5786195a521dffd07df6","_id":"detective-es6@1.0.2","_shasum":"fa6e3760a5d4ca9b80b612e0c1a2a06f5279e3cc","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"dist":{"shasum":"fa6e3760a5d4ca9b80b612e0c1a2a06f5279e3cc","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-1.0.2.tgz","integrity":"sha512-+QeATJ2P97V/D/g750y5cWFL/gbZ0WyGQchXfX2657ZwIrieCbgmRbWQ/i261gdfY4f1qCXcpSfDju+ot2eu5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtFmu5kUvw/kbuSQkCvErgQa5EkwrClcbPugOHKgHH0QIgfZST45UW1SHPHTUq9in4b95rCRGbpS5joPQW4XgZH7M="}],"size":1229,"noattachment":false,"key":"/detective-es6/-/detective-es6-1.0.2.tgz"},"directories":{},"readme":"# detective-es6\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-detective-es6/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/node-detective-es6/actions/workflows/ci.yml?query=branch%3Amain)\n[![npm version](https://img.shields.io/npm/v/detective-es6?logo=npm&logoColor=fff)](https://www.npmjs.com/package/detective-es6)\n[![npm downloads](https://img.shields.io/npm/dm/detective-es6)](https://www.npmjs.com/package/detective-es6)\n\n> Get the dependencies of an ES6 module\n\n```sh\nnpm install detective-es6\n```\n\n## Usage\n\n```js\nconst fs = require('fs');\nconst detective = require('detective-es6');\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, Flow, and any other features that [node-source-walk](https://github.com/dependents/node-source-walk) supports.\n\nYou may also (optionally) configure the detective via a second object argument detective(src, options) that supports the following options:\n\n- `skipTypeImports`: (Boolean) whether or not to omit type imports (`import type {foo} from \"mylib\";`) in the list of extracted dependencies.\n- `skipAsyncImports`: (Boolean) whether or not to omit async imports (`import('foo')`) in the list of extracted dependencies.\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1418506995107,"_cnpm_publish_time":1418506995107,"dist-tags":{"latest":"6.0.0"}}