{"id":13547658,"url":"https://github.com/dependents/node-detective-es6","last_synced_at":"2026-04-20T07:00:52.183Z","repository":{"id":22411053,"uuid":"25748471","full_name":"dependents/node-detective-es6","owner":"dependents","description":"Get the dependencies of an ES6 module by traversing its AST","archived":false,"fork":false,"pushed_at":"2026-04-03T18:34:11.000Z","size":928,"stargazers_count":36,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-08T18:37:48.854Z","etag":null,"topics":["ast","dependency","detective","detective-es6","es6","javascript","module"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dependents.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-10-25T22:10:35.000Z","updated_at":"2026-04-03T18:34:14.000Z","dependencies_parsed_at":"2023-11-22T10:31:26.548Z","dependency_job_id":"66c684db-19d2-4ddf-8e9a-c22d3acb1b72","html_url":"https://github.com/dependents/node-detective-es6","commit_stats":{"total_commits":50,"total_committers":9,"mean_commits":5.555555555555555,"dds":0.64,"last_synced_commit":"c792981b4567a7ff013f6636c8beba7921674d52"},"previous_names":["mrjoelkemp/node-detective-es6"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/dependents/node-detective-es6","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dependents%2Fnode-detective-es6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dependents%2Fnode-detective-es6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dependents%2Fnode-detective-es6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dependents%2Fnode-detective-es6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dependents","download_url":"https://codeload.github.com/dependents/node-detective-es6/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dependents%2Fnode-detective-es6/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31802159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ast","dependency","detective","detective-es6","es6","javascript","module"],"created_at":"2024-08-01T12:00:59.323Z","updated_at":"2026-04-20T07:00:52.127Z","avatar_url":"https://github.com/dependents.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# detective-es6\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-detective-es6/ci.yml?branch=main\u0026label=CI\u0026logo=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\u0026logoColor=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\u003e 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdependents%2Fnode-detective-es6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdependents%2Fnode-detective-es6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdependents%2Fnode-detective-es6/lists"}