{"name":"detective-es6","version":"2.2.2","description":"Get the dependencies of an ES6 module","main":"index.js","scripts":{"lint":"eslint index.js \"test/*.js\"","mocha":"mocha","test":"npm run lint && npm run mocha"},"repository":{"type":"git","url":"git+https://github.com/dependents/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/dependents/node-detective-es6/issues"},"homepage":"https://github.com/dependents/node-detective-es6","engines":{"node":">=6.0"},"dependencies":{"node-source-walk":"^4.0.0"},"devDependencies":{"eslint":"^5.16.0","mocha":"^6.2.3"},"gitHead":"8b0c7a45a7ff54fc57b47c4098b89a00927fdc24","_id":"detective-es6@2.2.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-eZUKCUsbHm8xoeoCM0z6JFwvDfJ5Ww5HANo+jPR7AzkFpW9Mun3t/TqIF2jjeWa2TFbAiGaWESykf2OQp3oeMw==","shasum":"ee5f880981d9fecae9a694007029a2f6f26d8d28","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-2.2.2.tgz","fileCount":4,"unpackedSize":4597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFLxiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbYBAAoATL90yCGDa/lZD093zy6EHziOD+m7rHhsd2G8TzcujTOraa\r\nrdouInDiHY+KYBYh2VT2rZZY50tATCvbypKiDBguE4wMoU6w4nTLKCoZ3Uwu\r\nqKdtHp8QgO4VqvetPuVy3kWSG5KiC/ilj7s64uuogRBtkF1/kk8Zj22Kwki6\r\nbVsbAVR4eW9CFAn37uUZNDeDZCIHphzD5ycLFkBIc0myDBlqnX31GhmpvGkb\r\nSFr/BX9iNiQrVBCqapE0yCNKByNDmNpfr1cKoSWRrnDRuK3BUHD0lp9XWn04\r\n179XZoHBMUtfrkQ/gHD4AZUGBeFN1y/KMlEzvXfObDI5nZZOO8PZNVNcEDy7\r\nwlD0MXmhv1vqJ+UgBZwNKuT4vyx9I+HN1J4burt4EcRJFoHar4Hoa3ch6U7a\r\nuRLs7ZsnugYHNaE7f3I2LG5sYptCYtxpxXpr1OLCbz6iucrOR3fg4C5dUIOh\r\nwrbP9IpL4bXrYggNsAFroeT7yg+azcrq8FBnegJgmx9ig3C3Zq2KYQgsIPIK\r\nKUg8IwZKnWBO6sEUHIeaGp0WRY+yIAglFRIjzxK/dAT4ymMnqqOc7UdX17ep\r\ne2wc+L135k1Pta6v6beM12P3rdE3mvljZ7UH0E+zQz6Sev5dx6AtQODsP5wZ\r\ny2NadWznu0PEScObRPOauVIYkmAkw++W46s=\r\n=Tg36\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGarx2iFo3dRjCFZhje/z4Wttr+SsU5CyosmbDSnZ9CTAiEAyC0WqMaQuCDRZHysSNc3+6mfQNRcerM7oZ3VWyiAkL8="}],"size":2106,"noattachment":false,"key":"/detective-es6/-/detective-es6-2.2.2.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"mrjoelkemp@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-es6_2.2.2_1645526114130_0.32179929037219934"},"_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":1645526114255,"_cnpm_publish_time":1645526114255,"dist-tags":{"latest":"6.0.0"}}