{"id":38237096,"url":"https://github.com/duan602728596/node-modules-clean","last_synced_at":"2026-01-17T01:07:10.064Z","repository":{"id":66112118,"uuid":"112168563","full_name":"duan602728596/node-modules-clean","owner":"duan602728596","description":"清除node_modules文件夹内的冗余文件。","archived":false,"fork":false,"pushed_at":"2018-02-08T03:53:57.000Z","size":11,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T23:03:00.677Z","etag":null,"topics":["node","node-modules","node-modules-clean"],"latest_commit_sha":null,"homepage":null,"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/duan602728596.png","metadata":{"files":{"readme":"README-zh_CN.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":"2017-11-27T08:27:50.000Z","updated_at":"2022-02-24T13:09:42.000Z","dependencies_parsed_at":"2023-05-22T19:30:46.926Z","dependency_job_id":null,"html_url":"https://github.com/duan602728596/node-modules-clean","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"f172953a0c944c70119b4307479f99edf9ec1390"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/duan602728596/node-modules-clean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duan602728596%2Fnode-modules-clean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duan602728596%2Fnode-modules-clean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duan602728596%2Fnode-modules-clean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duan602728596%2Fnode-modules-clean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duan602728596","download_url":"https://codeload.github.com/duan602728596/node-modules-clean/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duan602728596%2Fnode-modules-clean/sbom","scorecard":{"id":358798,"data":{"date":"2025-08-11","repo":{"name":"github.com/duan602728596/node-modules-clean","commit":"f172953a0c944c70119b4307479f99edf9ec1390"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/11 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":"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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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"}}]},"last_synced_at":"2025-08-18T10:16:09.084Z","repository_id":66112118,"created_at":"2025-08-18T10:16:09.084Z","updated_at":"2025-08-18T10:16:09.084Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28490985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"ssl_error","status_checked_at":"2026-01-17T00:43:11.982Z","response_time":107,"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":["node","node-modules","node-modules-clean"],"created_at":"2026-01-17T01:07:08.258Z","updated_at":"2026-01-17T01:07:10.050Z","avatar_url":"https://github.com/duan602728596.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-modules-clean\n\n## 说明\n清除`node_modules`文件夹内的冗余文件。   \n目前清除的文件包括`license`、`.npmignore`、`package-lock.json`、`yarn.lock`、`.yarn-integrity`、`.gitignore`文件，`.md`、`.txt`类型文件。\n\n## 安装\n```\n$ npm install node-modules-clean -g\n```\n\n## 使用\n进入文件夹，运行\n```\n$ node-modules-clean\n```\n清除当前目录内的`node_modules`文件夹内的冗余文件。\n\n参数`--path`或者`-p`，选择一个文件夹目录。\n```\n$ node-modules-clean --path \"path/to\"\n```\n或\n```\n$ node-modules-clean -p \"path/to\"\n```\n\n参数`--ext`或者`-e`，添加需要清除的文件的扩展名，参数以“|”分割。\n```\n$ node-modules-clean --ext \"*.ts | *.less\"\n```\n\n参数`--file`或者`-f`，添加需要清除的文件名，参数以“|”分割。\n```\n$ node-modules-clean --file \"a.js | b.js\"\n```\n\n参数`--filelist`或者`-i`，选择一个清除的文件清单。\n```\n$ node-modules-clean --filelist \"clean.txt\"\n```\n清单格式如下\n```\n# 注释\n*.ts        # 清除*.ts文件\ntest.js     # 清除test.js文件\n```\n\n## 参数\n| 命令 | 作用 |\n| ---  | ---  |\n| --path(-p)     | 选择一个文件夹目录                             |\n| --ext(-e)      | 添加需要清除的文件的扩展名，参数以“\u0026#124;”分割 |\n| --file(-f)     | 添加需要清除的文件名，参数以“\u0026#124;”分割       |\n| --filelist(-i) | 清除的文件清单（枪毙名单）                     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduan602728596%2Fnode-modules-clean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduan602728596%2Fnode-modules-clean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduan602728596%2Fnode-modules-clean/lists"}