{"id":17750560,"url":"https://github.com/nuintun/cmd-deps","last_synced_at":"2026-01-20T05:02:16.727Z","repository":{"id":31286680,"uuid":"34848683","full_name":"nuintun/cmd-deps","owner":"nuintun","description":"Transform cmd and get cmd dependences","archived":false,"fork":false,"pushed_at":"2023-09-27T20:35:04.000Z","size":624,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-22T15:32:30.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://nuintun.github.io/cmd-deps","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/nuintun.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}},"created_at":"2015-04-30T10:25:57.000Z","updated_at":"2021-12-06T08:39:13.000Z","dependencies_parsed_at":"2024-10-26T14:03:46.616Z","dependency_job_id":"8def7f08-190e-4ddf-accc-98247c898b5d","html_url":"https://github.com/nuintun/cmd-deps","commit_stats":{"total_commits":188,"total_committers":5,"mean_commits":37.6,"dds":"0.13297872340425532","last_synced_commit":"ea0f5016e99ccb4e94c4208d750b177b74b402a0"},"previous_names":["nuintun/umd-deps"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nuintun/cmd-deps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Fcmd-deps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Fcmd-deps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Fcmd-deps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Fcmd-deps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuintun","download_url":"https://codeload.github.com/nuintun/cmd-deps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Fcmd-deps/sbom","scorecard":{"id":698164,"data":{"date":"2025-08-11","repo":{"name":"github.com/nuintun/cmd-deps","commit":"ea0f5016e99ccb4e94c4208d750b177b74b402a0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T04:20:58.334Z","repository_id":31286680,"created_at":"2025-08-22T04:20:58.334Z","updated_at":"2025-08-22T04:20:58.334Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28596087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: 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":[],"created_at":"2024-10-26T12:22:36.129Z","updated_at":"2026-01-20T05:02:16.711Z","avatar_url":"https://github.com/nuintun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmd-deps\n\n\u003e Transform cmd and get cmd dependences\n\u003e\n\u003e [![NPM Version][npm-image]][npm-url]\n\u003e [![Download Status][download-image]][npm-url]\n\u003e [![Linux Status][travis-image]][travis-url]\n\u003e [![Windows Status][appveyor-image]][appveyor-url]\n\u003e [![Test Coverage][coveralls-image]][coveralls-url]\n\u003e [![Dependencies][david-image]][david-url]\n\n### Installation\n\n```\nnpm install cmd-deps\n```\n\n### Api\n\n* parseDependencies(code:String|Buffer, options:Object):Object\n* parseDependencies(code:String|Buffer, replace:Function, options:Object):Object\n  * options { acorn:Object, word:String, flags:Array }\n    * acorn: acorn options\n    * word: dependencies function name\n    * flags: dependencies function method name\n\n### Example\n\nsource:\n\n```js\nrequire('a');\n//require('b');\n/require('c')/;\n('require(\"d\")');\nif (true) /require('e')/;\ndo /require('f')/.test(s);\nwhile (false);\nrequire.async('g');\nrequire.async(['h']);\n```\n\njs:\n\n```js\nconst parseDependencies = require('cmd-deps');\nconst dependencies = parseDependencies(source, { flags: ['async'] }).dependencies;\n\n// print dependencies\nconsole.log(dependencies);\n```\n\nparser output:\n\n```js\n[\n  {\n    flag: null,\n    path: 'a'\n  },\n  {\n    flag: 'async',\n    path: 'g'\n  },\n  {\n    flag: 'async',\n    path: 'h'\n  }\n];\n```\n\n## License\n\n[MIT](LICENSE)\n\n[travis-image]: http://img.shields.io/travis/nuintun/cmd-deps.svg?style=flat-square\u0026label=linux\n[travis-url]: https://travis-ci.org/nuintun/cmd-deps\n[appveyor-image]: https://img.shields.io/appveyor/ci/nuintun/cmd-deps.svg?style=flat-square\u0026label=windows\n[appveyor-url]: https://ci.appveyor.com/project/nuintun/cmd-deps\n[coveralls-image]: http://img.shields.io/coveralls/nuintun/cmd-deps/master.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/nuintun/cmd-deps?branch=master\n[david-image]: http://img.shields.io/david/nuintun/cmd-deps.svg?style=flat-square\n[david-url]: https://david-dm.org/nuintun/cmd-deps\n[npm-image]: http://img.shields.io/npm/v/cmd-deps.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/package/cmd-deps\n[download-image]: http://img.shields.io/npm/dm/cmd-deps.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuintun%2Fcmd-deps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuintun%2Fcmd-deps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuintun%2Fcmd-deps/lists"}