{"name":"detective-es6","version":"1.1.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","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.4.0"},"devDependencies":{"mocha":"~2.0.1"},"gitHead":"04f9826c2597409fd26f6337f3ac54df2e2426bd","_id":"detective-es6@1.1.0","_shasum":"7c036e1f9469a848a527201edf6ec5a2eef3adab","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"dist":{"shasum":"7c036e1f9469a848a527201edf6ec5a2eef3adab","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-1.1.0.tgz","integrity":"sha512-T9vCRvekcvOTQcr5QoPXU8ThuRpTAr3M0gjt+qSjfa1KW03oVDsBSEcKaMUCyZeNW5HbYWfaIxFqy9RJPv7waw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlwM0e60lmWKJJVhP5D96ajV+/l5TiD/HVv0deXZZYJQIhAJ4gfGm7sJKtFgD4r8kO0o6s5EBisYbr6Vax+wbtFTr4"}],"size":1471,"noattachment":false,"key":"/detective-es6/-/detective-es6-1.1.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":1418525116465,"_cnpm_publish_time":1418525116465,"dist-tags":{"latest":"6.0.0"}}