{"name":"detective-es6","version":"1.2.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","dependencies":{"node-source-walk":"^3.3.0"},"devDependencies":{"jscs":"~2.4.0","mocha":"~2.0.1"},"gitHead":"cfefb75426794f3872f58ea1493bfa2bb14e2a28","_id":"detective-es6@1.2.0","_shasum":"6b9b3bd547fd8f21f89502f626e45ed2a3276fdc","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.1","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"6b9b3bd547fd8f21f89502f626e45ed2a3276fdc","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-1.2.0.tgz","integrity":"sha512-mJUovHcmWRVvqC99YOPvZcegGxrAVvO2Mu2cZ++ULm7LD80vth/cm1S3gOvA08vpVfCVfKykKYyrG5g4fl9ebg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDFggw5xzIDDgp1VKkH2P+BpFPzkTCbZ1c03uziF8LeLAiAD+9Yq/952pxEsHKhbxxpsRBf2t+pS9Ii6f+uRcS/NTA=="}],"size":1883,"noattachment":false,"key":"/detective-es6/-/detective-es6-1.2.0.tgz"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-es6-1.2.0.tgz_1503872632280_0.07378752226941288"},"directories":{},"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":1503872633227,"_cnpm_publish_time":1503872633227,"dist-tags":{"latest":"6.0.0"}}