{"name":"detective-es6","version":"6.0.0","description":"Get the dependencies of an ES6 module","type":"module","exports":{".":"./index.js"},"scripts":{"lint":"xo","fix":"xo --fix","uvu":"uvu test","test":"npm run lint && npm run uvu","test:ci":"c8 npm run uvu"},"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":">=20.19.0 || >=22.12.0"},"dependencies":{"node-source-walk":"^8.0.0"},"devDependencies":{"c8":"^11.0.0","uvu":"^0.5.6","xo":"^2.0.2"},"gitHead":"7c4544c0d36b7297ae50dd5b85815e3bc0f24718","_id":"detective-es6@6.0.0","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-gbrrUDI8a3VvQilbdlZLC1IOUdydtjIgoNF1dEUsy0Rba+ianG2tC5d5mXAp0T4GrJuzjyzP4yZVAtcUx6YYNg==","shasum":"997172d81b04756b476f78939c057dbc9b097bee","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-6.0.0.tgz","fileCount":4,"unpackedSize":4890,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGMNJlX9ThBmJHIZUL5wDDphUpBWubjnanTXP9gC7h6CAiAt5C6Dr8WMV13ITtTQPEv2z/1XJNQb5hm2My2w9w0THg=="}],"size":2267,"noattachment":false,"key":"/detective-es6/-/detective-es6-6.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"mrjoelkemp","email":"mrjoelkemp@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/detective-es6_6.0.0_1779196882133_0.5170106728543651"},"_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### ESM\n\n```js\nimport fs from 'node:fs';\nimport detective from '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### CommonJS\n\n```js\nconst { default: detective } = require('detective-es6');\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":1779196882271,"_cnpm_publish_time":1779196882271,"dist-tags":{"latest":"6.0.0"}}