{"name":"detective-es6","version":"4.0.0","description":"Get the dependencies of an ES6 module","main":"index.js","scripts":{"lint":"xo","fix":"xo --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":">=14"},"dependencies":{"node-source-walk":"^6.0.0"},"devDependencies":{"c8":"^7.13.0","mocha":"^10.2.0","xo":"^0.54.2"},"xo":{"space":true,"ignores":["test/fixtures/*"],"rules":{"arrow-body-style":"off","capitalized-comments":"off","comma-dangle":["error","never"],"curly":["error","multi-line"],"operator-linebreak":["error","after"],"object-curly-spacing":["error","always"],"space-before-function-paren":["error","never"],"unicorn/prefer-module":"off","unicorn/prefer-node-protocol":"off","unicorn/prefer-top-level-await":"off","unicorn/prevent-abbreviations":"off"}},"gitHead":"07bc02828ffa619d5dec6bc3da343ee79134ae60","_id":"detective-es6@4.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-mkK4wKxiZ6w+XXeZc+Cma4kpb5ZjuGQbpmvJdZuuDCJ59+Ddlqx3zP+vGMVs+u98pt2P4mu2a7CNNgAoG7jb7A==","shasum":"90cc12b72fb7d0740e956b6f43c79ca3b4a4b394","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-4.0.0.tgz","fileCount":4,"unpackedSize":5447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrVIdORyUbXCi/XZDOO3//6WJ5zTLpfRe4jXGGHq7I/AIgUbNQJ3sWB+QbwhYqeOXyKsCMnbiA4mn13oGTxcUXZ9Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkVKh9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoxng/9HRR9FxLoYzYcEiSrhMFIk4hzPzL/tm/76tWhytRIsTXuVE+I\r\ngwLi86Un8tMsi4WxDmHiEpuhTigEuP/Ezu/5ukx/W505SptwmVyKtKrl2Nia\r\nxT9aa8Jmm3jXfKAxhdjoqr6gFOHT0/bVjNBjyRmIsAzbWWd5IdcxOmJ7ZDla\r\nXoaOhF+Qq6f9AZrFGvyldTY3nqU43SVbdy62EhJg2mCfD9qz9XkvAvoT0J7F\r\noJgbtYguZV13mrf03jnv7cCojjfwaxIZCLn5A6Ih2xVUwpG9WSIlEoS05zeH\r\nCSvtnpXU5tFY89GnQtgJ0MvnBI4SMnbcwAGS16iZ1nu/5xtK+cPAEF8LzXYG\r\nD2RSv7WVVvtCG4c1pFQVEgpYFbtvj92Ps3lMw+EUapQIirHWBcgd9cgi7CTM\r\nVu/mwu3Yx/W9mi3EEeYIfR+bEz/ba7FcWnYz1nlQlLLOxYGjFCfTmN+vDXRW\r\n5iKiqRg+kmqVHkEM49KT8KwFtaoYhkTZKXWxNfUW/dSls8nZPPw5aYHbeoLK\r\ni7IRTfidNBsOXoJhy8ltQgH4Hvr3CzO+62tFywCXQqHd0tkanaUJp4+35XoD\r\nvPBsvWQTfRhSWedya50C2bQ9+M7ILIaZhVzwvLFXf+7Ebqzm15DGiPgp43Tb\r\n5rMWkdLSV0Ed9LiWjnEOvMtD5OApEGxInDI=\r\n=wGPL\r\n-----END PGP SIGNATURE-----\r\n","size":2409,"noattachment":false,"key":"/detective-es6/-/detective-es6-4.0.0.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_4.0.0_1683269757408_0.3767957989792752"},"_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":1683269757549,"_cnpm_publish_time":1683269757549,"dist-tags":{"latest":"6.0.0"}}