{"name":"detective-es6","version":"0.0.0","description":"Get the dependencies of an es6 module","main":"index.js","scripts":{"test":" "},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-detective-es6.git"},"keywords":["detective","es6","dependencies","module"],"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","_id":"detective-es6@0.0.0","_shasum":"ef650ac7a27b1a4a506f8f1d531489ee723a4c48","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"dist":{"shasum":"ef650ac7a27b1a4a506f8f1d531489ee723a4c48","tarball":"http://registry-npm.ywwl.com/detective-es6/download/detective-es6-0.0.0.tgz","integrity":"sha512-kjbvFhyE2eKVyLZ76qJq842Oi1UnTztAqyMJcdiacbIg+PkP/OPTwHGPBM9rdtkmWYXbNPZCw+Pg+ZXqgyLmrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpSQ2TJPtNTbex+6CSYqioqR1+auBtB5nD4Gngldd8kAIhAMl7xnroyC+F5zSUMTycPVveiWZK51B9ewwkMhnL91Hc"}],"size":375,"noattachment":false,"key":"/detective-es6/-/detective-es6-0.0.0.tgz"},"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":1414275214083,"_cnpm_publish_time":1414275214083,"dist-tags":{"latest":"6.0.0"}}