{"id":15311133,"url":"https://github.com/talentlessguy/node_modules_cleaner","last_synced_at":"2025-04-06T04:44:46.531Z","repository":{"id":57311153,"uuid":"171825392","full_name":"talentlessguy/node_modules_cleaner","owner":"talentlessguy","description":"🧹 Cleans node_modules from non code files.","archived":false,"fork":false,"pushed_at":"2019-07-24T21:10:46.000Z","size":216,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T10:55:19.743Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/talentlessguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-21T07:50:21.000Z","updated_at":"2020-12-16T15:23:48.000Z","dependencies_parsed_at":"2022-09-06T03:32:12.020Z","dependency_job_id":null,"html_url":"https://github.com/talentlessguy/node_modules_cleaner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Fnode_modules_cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Fnode_modules_cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Fnode_modules_cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Fnode_modules_cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talentlessguy","download_url":"https://codeload.github.com/talentlessguy/node_modules_cleaner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247436140,"owners_count":20938532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-01T08:31:50.726Z","updated_at":"2025-04-06T04:44:46.505Z","avatar_url":"https://github.com/talentlessguy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NM_Cleaner 🧹\n\nCleans node_modules from non code files (e.g. README.md).\n\nA very useful tool when transfering the project to offline environment.\n\n## Cleaning Results\n\n| Package Name | `node_modules` before | `node_modules` after |\n|--------------|----------------------|-----------------------|\n| create-react-app@2.1.5 | 101 Mb | 85.74 Mb |\n| koa@2.7 | 737.30 Kb | 420.88 Kb |\n| express@4.6.14 | 1548.30 Kb | 971.91 Kb |\n\n## Installation\n\n### Requirements\n\n* node \u003e= 11.1\n* yarn \u003e= 1.13\n\n```sh\nnpm i -g nm_cleaner\n\n# or\nyarn global add nm_cleaner\n```\n\n## Usage\n\nJust clean the node_modules in a project directory.\n\n```sh\nnm_clean \u003cproject_folder\u003e\n```\n\nShow files that are deleted.\n\n```sh\nnm_clean \u003cproject_folder\u003e -a\n```\n\n## Demo\n\n```sh\nmkdir nm_clean-demo\ncd nm_clean-demo\nnpm init -y\nnpm i koa\nnm_clean ./ -a\n```\n\n## How it works\n\n**nm_clean** goes recursively through node_modules, then picks unnessesary files and deletes them. Yes, so simple.\n\n## Supported extensions \u0026 directories\n\n* Markdown files\n* License files\n* Every file ending with 'rc'\n* 'ignore' files\n* Makefile\n* Tests and example directories\n* YAML files, for example travis.yml\n* Unnesesary config files such as .editorconfig\n\n__and some more in the future...__\n\n## TODO\n\n- [x] Create nm_clean\n- [x] Also remove directories\n- [x] Publish the package\n- [ ] Add timers to count how many seconds it took to clean\n- [ ] Make everything async for better perfomance\n- [ ] Create plugin for Gulp \u0026 Webpack\n- [ ] Add more file extensions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalentlessguy%2Fnode_modules_cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalentlessguy%2Fnode_modules_cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalentlessguy%2Fnode_modules_cleaner/lists"}