{"name":"detective-es6","version":"2.2.1","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":"^9.1.3"},"gitHead":"262bba8e0c3c82c6f9f2b3a38d922f277baad125","_id":"detective-es6@2.2.1","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-22z7MblxkhsIQGuALeGwCKEfqNy4WmgDGmfJCwdXbfDkVYIiIDmY513hiIWBvX3kCmzvvWE7RR7kAYxs01wwKQ==","shasum":"090c874e2cdcda677389cc2ae36f0b37faced187","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-2.2.1.tgz","fileCount":5,"unpackedSize":6955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2oGvCRA9TVsSAnZWagAAiUoP/0pncnyBx3RR55+gm8iH\n+IwQNtsDNwkTruWu4rvhQtUSppMYMgN5apQ320Mu65b3OROFoxbzA7gvY5hq\nMSamI1OA+kVTIesXgGrVMVM4TB+Uglqd3K/REjuh9kDPpSycsrH4YyIwJHMs\nbrM/xtRSKNRCRtudhgqb07JB92NxkfrnLJwJNJ2l+EYgWkMcdcnTuCYhtzYL\ne0bAtn7SZRWoeurhmTv+h1XwfUUvoyLMYgoSENg15l2UCc/DWenqBXXXXjVq\nEx4d+2iPQFPAjfoafM+d43t+jUerJLMKQdH7uxJkoB/y0ga7btRMAc564Xd7\n70WKSpjt+lUrNvclvdGQNbjZOR2JEngT5JJrFtymoN0SJ+B99MbRJ45nnFAm\no36/63ILZtsg7+csCmP2C5an11jCgpO9FFkKqDyx1bLIPo/7zENWkRt6GK+n\nJI/hl4M/K12nFTVfdU7h4bbgpOwnDJfSygDSbF2L1GM4E85wXitSF2iUaN2g\nVLMq9rXpEEVj9ea6XEe3IDzUAtf05AMw93ReGBM6fE9B9XSE/BRWBgA4pnhD\niFoxJLYzlC/xnCEw6H4KL98XZ3SGNRD/oy0PorvUK5C2rF3aa+qmeEn5WACa\nBtbt1kPpOYvDHb+viAscH9oBv1YwWKiOOsI08D50NsaViZWt9nhr/5dDQvDy\n3OTr\r\n=XiKT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnlROAgxNUlIIUlg2gRHC1YvSSiHP0yJEcRty3CFpzgQIhAJp7OCOEfic6qN8prgtoUFPz0t/oCnu8mvofZ+Elttez"}],"size":2246,"noattachment":false,"key":"/detective-es6/-/detective-es6-2.2.1.tgz"},"_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-es6_2.2.1_1636643709098_0.2294792634534597"},"_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":1636643709302,"_cnpm_publish_time":1636643709302,"dist-tags":{"latest":"6.0.0"}}