{"name":"detective-es6","version":"1.0.0","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"],"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":{"mocha":"~2.0.1","node-source-walk":"~1.2.0"},"gitHead":"3837bc340f3d661b494580d6c5867334e7400bf3","_id":"detective-es6@1.0.0","_shasum":"bb39c28a627677c6abfd737cc4ce1c3dc71f632c","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"dist":{"shasum":"bb39c28a627677c6abfd737cc4ce1c3dc71f632c","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-1.0.0.tgz","integrity":"sha512-AXwhYPKNo6jVbFK5utSSGNer6CCNzFWg9eVw2ASeSiMQ61c/wdlqYWj0MOUVyasnoyO7LWyeKIOeZ4Z58RQX0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4G6ZjKXKNmFhREfBH9jVnrTlv0a3E3X/z2lKwLBuhfwIgKfRliN0PKnwYIXJv+mXzRtsCQzxOgWNMWiNaMVfcBaQ="}],"size":1106,"noattachment":false,"key":"/detective-es6/-/detective-es6-1.0.0.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":1414467510934,"_cnpm_publish_time":1414467510934,"dist-tags":{"latest":"6.0.0"}}