{"name":"detective-es6","version":"3.0.0","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","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.11.0","eslint":"^8.10.0","mocha":"^9.2.1"},"gitHead":"65ae2c23d5c1d6c825ce5ac37dacede9e90bf299","_id":"detective-es6@3.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-Uv2b5Uih7vorYlqGzCX+nTPUb4CMzUAn3VPHTV5p5lBkAN4cAApLGgUz4mZE2sXlBfv4/LMmeP7qzxHV/ZcfWA==","shasum":"78c9ef5492d5b59748b411aecaaf52b5ca0f0bc2","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-3.0.0.tgz","fileCount":4,"unpackedSize":4693,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiILkfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrebhAAgV+EglOTi38+c0lPwOKgwieZ9Jhm4iyA0/s1GGBFYlbE5Nq0\r\nnnLwjtlVFPr/Zqpyh6uU2HmPdlX937fHhWcwnpjIoec+lNALQU4KsC0qImYf\r\nxuH5J1jb36/KTRLS8xyJXTqzUTSfH2YckQMSsjZLXEL98MvIsCcU5v8jmu5M\r\nAtU7Pj/COomna9Jb1yldN+HX/bICLH09Rl+8vhSNa9uT3mPe2R+sMe00LFLb\r\niDJ3vmexudwLxGLsIhxLlArwQrq/jYY9pcKF6amNcbNbGxIx6jUDvOag4AOR\r\nDAM+blUUQKRhhy3vKj5/TNu0duqOODrQborkExuVt66U+oMJvU/51bDe3LPV\r\n25l9uY906Ofgn+qjjLEQ5EVS5A3bWYn8sCSoBe9DT41/lSJBVCUBWgXeiFbi\r\ndXR02aEuMKGgtDWmN181q2j1xw46+I92eCmv78O6EzFHHlHQMZof/ekzGR0J\r\n06tY6Hvo1WAqWwy+fhNf8/NuStS/KKZusjFQRtKaMldXAwiEaIOv4TErEZ2G\r\ncnzCFlxnckR0F40B2IkCmw1tI62iUCW+2uP4n5lTVJUGHh9T9ovx/1c5zjSI\r\nTmroYgDZV/MGc47o/i/D2BoU9zMxUk2finZDf0RaArhDQf5u7PFNYBmA1DKI\r\n5DI6EfAcR6jx8UbIAfmsFy8yQSvk1DVeHTs=\r\n=8WOc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGlzjM+smPc5kDwVMVe1tNs9uA+RMtcHLps2YDkoqyTaAiBikRoJ7t4BaxK/4RIg70RTk6aFM125oLmUyZcEa0oZCA=="}],"size":2167,"noattachment":false,"key":"/detective-es6/-/detective-es6-3.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_3.0.0_1646311711108_0.3702558507387781"},"_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":1646311711244,"_cnpm_publish_time":1646311711244,"dist-tags":{"latest":"6.0.0"}}