{"name":"detective-es6","version":"2.1.0","description":"Get the dependencies of an es6 module","main":"index.js","scripts":{"test":"jscs -p google index.js test && mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-detective-es6.git"},"keywords":["detective","es6","es2015","dependencies","module","ast","import"],"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","engines":{"node":">= 6.0"},"dependencies":{"node-source-walk":"^4.0.0"},"devDependencies":{"jscs":"~2.4.0","mocha":"^5.2.0"},"gitHead":"43fbf750d1082a39911a084999359f66326b01a3","_id":"detective-es6@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"integrity":"sha512-QSHqKGOp/YBIfmIqKXaXeq2rlL+bp3bcIQMfZ+0PvKzRlELSOSZxKRvpxVcxlLuocQv4QnOfuWGniGrmPbz8MQ==","shasum":"7848feaec92279d82f7b3a98d8e1f5d93483a0f7","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-2.1.0.tgz","fileCount":5,"unpackedSize":5686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchAfwCRA9TVsSAnZWagAAZcMQAJpbVa2R2yscVTdDn9gN\n4XIMpGlfnug0O/33Bax08R7+UwUWQqp6fNQDJbzGQc3ufTi9PozAIq1H9rgz\nLF3yI0OQJExNj2vaBExqsKgPBEFRehQWOZd5oapnuaJWtp7haCS9VE8jZL85\nXUTjDewTuqyOWppPyKZgaYbFwEolQoRlCTpSxop4qDaEX6sqGDEe49TtGrBi\n7crh2SR1HmE4K7GqYBScwpKH5IqR6wTkkBhLG2NFj7irPz3fQRs1dYLs0DNa\nUIkljm5/nAp5UZPXdJ6qT9LrPrgVf5TXz4NWQeTiMvBxd5xhup3LyS6ROE22\nCsmY1vsgItWmxd9ev9+4G5DWPBq/HV2VDTPYDFA1/KUTj8p79rnmx5spn8SU\nVI4quwCOJFryTzRJQn0a/tOi+f5CPfry3U8oSfUH9JZ04iG6r3n/V2QiDWoC\nC7jNtd5ivgnuPwtMDCsMp5fj4yXTi1KkSjRygRJ18GvpOg6otNLsvsRUOUQy\nIlFJLD1fQX1QCrdMMDhgY/15s5oSJMRDz41U7bZ7anMOE2tAvL1CXw5QC4k1\nbgAHJ8rdNCvX98PGy0ifAyliitVMZ4ppcKVu9jq3Jrrafl9xrFweg8MhO/5T\nEKt8avcWlA77r9mIinqGib2uS1OmPr9kq5THauElhzmJKn7l5Xk7Blm/fGY7\nek/r\r\n=VhmI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdAOAbw3+YPwJiAfwDkGGsTrouMSwfwYj5It+BZiQJRwIhANCee/08d6CWjbamqYHNGrgytanHYZapIZ1cIYHGHF7Y"}],"size":1990,"noattachment":false,"key":"/detective-es6/-/detective-es6-2.1.0.tgz"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-es6_2.1.0_1552156655545_0.9115947361487615"},"_hasShrinkwrap":false,"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":1552156655647,"_cnpm_publish_time":1552156655647,"dist-tags":{"latest":"6.0.0"}}