{"name":"detective-es6","version":"3.0.1","description":"Get the dependencies of an ES6 module","main":"index.js","scripts":{"lint":"eslint index.js \"test/*.js\"","fix":"npm run lint -- --fix","mocha":"mocha","test":"npm run lint && npm run mocha","test:ci":"c8 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":">=12"},"dependencies":{"node-source-walk":"^5.0.0"},"devDependencies":{"c8":"^7.13.0","eslint":"^8.36.0","mocha":"^9.2.2"},"gitHead":"c792981b4567a7ff013f6636c8beba7921674d52","_id":"detective-es6@3.0.1","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-evPeYIEdK1jK3Oji5p0hX4sPV/1vK+o4ihcWZkMQE6voypSW/cIBiynOLxQk5KOOQbdP8oOAsYqouMTYO5l1sw==","shasum":"53a15fbb2f298c4a106d9fe7427da8a57162dde6","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-3.0.1.tgz","fileCount":4,"unpackedSize":4748,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8QuF8Va+xrxYs5mKY2awtnuNIM1Isgfu/39teU5jPQAiAeD+N1ZSRXv/KlxP4F3sg5curoNU237WyhEF2JOfntdQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFsDgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFkQ/8DRvasvsfs5vbAQRFjLFTIENak5tBIOmCtP4HJsh9R2yes1TL\r\n5nT4hLmw8O0xyCQZ1f8ALqJM/UmpHz4XWEP48u2XbGQI3amC7PFL2XZTCbl3\r\n7r1kY94U7Y2c5nmxULTP66J7mhUOYkwuTi+Lip4Owfde7Fl58RnvttBWkJPB\r\nrnhkaN4BUTMM46FVCsYA94W5RAi+mtvNl+Lq4HZv4Rs+MhlWH0oERDEIzi6t\r\nsRdQaeL/TWohGtJMb0J5gUvJmSINIQj+Yl19qhY2HKFgdFERCfs/a9MG4Fkx\r\nXjaPMYbFIcHYRJo77aI3t6JxAUemLx3TJ2scgolss1NqzbkfKDgwcVfQk1Tq\r\nulbe7xG5d9mM1oZjDuXY/1oeg0wCe9DCK/z/M9i/8IBA03VWT1Kv14jN2KNh\r\n25p9nNl9Q/TBB7xWC+wgN7U9mabujlKEMN9cGvmx8oLUW6og1Kzqu1jVfPp0\r\nsmnfrP78pnG0jofEj1pUD9LYEaYuHl/jdVgJsQerG6ElPAPrAfuuWWRteZFy\r\nh7l+BL4I9PKfm1WeMdqdgDBRAJTFJUtvQ3fFfjI6OX/mjlF/TcXHeF2ddbgl\r\n8XPR4HosM88YBN5X872/SIbrpTH+s5chHoQ5bmhK5nlwyHELLpXl1OfpGWtl\r\nHWsQRcX2vWrNSu+RliaqFQslrO5wT6U17vk=\r\n=xfqW\r\n-----END PGP SIGNATURE-----\r\n","size":2183,"noattachment":false,"key":"/detective-es6/-/detective-es6-3.0.1.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"},{"name":"mrjoelkemp","email":"mrjoelkemp@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-es6_3.0.1_1679212768050_0.21663081203164247"},"_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":1679212768202,"_cnpm_publish_time":1679212768202,"dist-tags":{"latest":"6.0.0"}}