{"name":"detective-es6","version":"2.0.0","description":"Get the dependencies of an es6 module","main":"index.js","scripts":{"test":"jscs -p google index.js test && mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/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/mrjoelkemp/node-detective-es6/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-es6","engines":{"node":">= 6.0"},"dependencies":{"node-source-walk":"^4.0.0"},"devDependencies":{"jscs":"~2.4.0","mocha":"^5.2.0"},"gitHead":"2c891db597f7a721f82620a1fdc9eaa90ad9fe88","_id":"detective-es6@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"integrity":"sha512-lo2kHVepcq3v39Q/t5uY6sy3cK1g29Kgi4Sj4KpR/15WGwecwma1yaEzZoofyJg/QyeOz36DZhouJ3eD46efCg==","shasum":"e2919c33140cca54013b934cafa83c6e01509247","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-2.0.0.tgz","fileCount":5,"unpackedSize":5190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbjWdmCRA9TVsSAnZWagAALokP/2DvUx9jf1KfnVD87Iut\nm2jEO904tZdEvqc8z3c5vTSRNPI73xcxce2PzM7G1r9DvsfG/8km4Xz12baU\ngC4KIrAjcoOTISRUpGHL6Mj4BqZaL9Ogdaha1SzwBVL7JEhjrd8v3sEQ499b\njRDe3+oahOWJfsdxExzPT/gY39XmzRks+wLOLf2kfmyJlA5SybQOw74wBGhj\ncgAh0CVLPN29v77RDgJjguBMpODKtneUKU+eXDZMSpTiysrhdZvc80BDC5CU\nJ0Lt2fyzHRQbZ5AmnIP/JrZRGmdDR+hVSZ+9b15JCk71Y2CLduacGQqv9wNS\nmjEYK95bXuAfiQOr4ZP27oeKHHY4Q9apT0zWj6SdLz4284vmPC3V2y7Qx969\nFAMZDFBzrtlxVox2tB7tczQdq2KFpxULgx+q7GU489CjllOB/QKSjItM0fae\nxS/MU0OnYQHJN+0ImaBR3I0TYWHMajHuQL3EqnKqyqsrhBIN1dANmvq4Q5Ss\nc0sTfXe/jaz/Zm+dcOMnoQw25LUieE9CQR4jbj2MB8muL83S/a4VOKGmFiA9\nWuU3RnK81FgvcmUSVHXxZexS1uRLyXINMHhk6fFHK+M1ZHPViFePC9vVuiTw\n3qZME00AtRLRdNYn/O8BomZP610MHFJBEyzW1JIB8ujWGBd2NilKWPPiaGch\nkVw6\r\n=h9pM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvghehqGoSJBrLdJSWdqT3Dkb6MV1FTxZ0DazSjWpr3QIgBsxClmYCV19TyaAmDOKHK9jmMGAKwA9B5dtNjiK3GEM="}],"size":1867,"noattachment":false,"key":"/detective-es6/-/detective-es6-2.0.0.tgz"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-es6_2.0.0_1535993701997_0.4959391050348556"},"_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":1535993702131,"_cnpm_publish_time":1535993702131,"dist-tags":{"latest":"6.0.0"}}