{"name":"detective-es6","version":"2.2.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":"2569038b7e5663683cefe7f132ae62e6e2b966f4","_id":"detective-es6@2.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"integrity":"sha512-fSpNY0SLER7/sVgQZ1NxJPwmc9uCTzNgdkQDhAaj8NPYwr7Qji9QBcmbNvtMCnuuOGMuKn3O7jv0An+/WRWJZQ==","shasum":"8f2baba3f8cd90a5cfd748f5ac436f0158ed2585","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-2.2.0.tgz","fileCount":5,"unpackedSize":6756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe92QMCRA9TVsSAnZWagAAQoUP/0ClWi/7Als3lm6EMQSZ\nW/PqgJ6ktxjfBFX4WIUvlRhe8aLTiQEy9H1i1nLPwDHFKnL856K+BpWmF3x4\nAgDwofc+S9VCfOfZoykLS/Tw58LA+yGnrCX7FuJ+6CKUadESke7XV7QtdPOj\nK0FL4T30kqq0LurvLcL1bJxVxwCLh7+bKSENDZHVc1lbl+jiqBmT/vDShx/p\nP5KV4MTfyLQurT+0iULGmiG6pewk/iP8uGxP0BaeyAk8V16wFZqVFf/ivYXx\nZuUg7F/YnC/qUmTpl3SOa6vT6tUP9Zey/zIPEFQ0yNNBrNo2ig2Y0Y32/nfn\nIZmVyevY4HWrruNXLcxP77RrsU/bwEXTRvJ5iro1ZETQFjOnVjiSb9HetYUy\n+A4ZfeUQif6MjY1L3BjekqUU3p68yjn/T/ZpV8xZvJq1SqDivCxqwJP3sd0t\nETsMZ1XH1uWM8tZ4V8d4IbCDgPwYriPVQw3Y2Kdd/SXhF6Golj4w3P9aGGMq\nGErVb9ctYD4yccp1QGWAQnMzbXm+xTX79/Rg3/QjV7AnHMVWc8OJKaQ88n9e\nwzVfVqexvcJgHm1QjM7y8eoWcWyxLc2o57uFpf8bb8QDnCgn3nYfb/suQgxp\nkk2sERJnfmnrhgAScBKQanVe+APye6iP+SgQ2jbeK//1aJwRXVHjvNO0iZks\nxMKN\r\n=R2jT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCl4HvZ/c/hWjJjNRCDX4AcPPIaVNGhdOWc2dHPDzfHugIgRG4OrnLX5jRAohFhK/Se/rkbU8whEc31IdZkPROFUbk="}],"size":2202,"noattachment":false,"key":"/detective-es6/-/detective-es6-2.2.0.tgz"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-es6_2.2.0_1593271308392_0.9768186952529956"},"_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":1593271308588,"_cnpm_publish_time":1593271308588,"dist-tags":{"latest":"6.0.0"}}