{"id":13393827,"url":"https://github.com/tj/node-prune","last_synced_at":"2025-05-14T05:10:44.479Z","repository":{"id":37602897,"uuid":"111253639","full_name":"tj/node-prune","owner":"tj","description":"Remove unnecessary files from node_modules (.md, .ts, ...)","archived":false,"fork":false,"pushed_at":"2022-11-30T20:59:44.000Z","size":52,"stargazers_count":4429,"open_issues_count":24,"forks_count":132,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-04-11T00:05:24.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/tj.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-19T01:11:42.000Z","updated_at":"2025-04-10T09:37:09.000Z","dependencies_parsed_at":"2023-01-21T13:17:46.225Z","dependency_job_id":null,"html_url":"https://github.com/tj/node-prune","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fnode-prune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fnode-prune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fnode-prune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fnode-prune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tj","download_url":"https://codeload.github.com/tj/node-prune/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076850,"owners_count":22010611,"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-07-30T17:01:00.916Z","updated_at":"2025-05-14T05:10:44.442Z","avatar_url":"https://github.com/tj.png","language":"Go","readme":"\u003cimg src=\"http://tjholowaychuk.com:6000/svg/title/NODE/PRUNE\"\u003e\n\n## What?\n\nnode-prune is a small tool to prune unnecessary files from ./node_modules, such as markdown, typescript source files, and so on. Primarily built for [Up](https://github.com/apex/up) which lets you deploy serverless web applications in seconds.\n\n## Installation\n\nFrom [gobinaries.com](https://gobinaries.com):\n\n```sh\n$ curl -sf https://gobinaries.com/tj/node-prune | sh\n```\n\nFrom source:\n\n```\n$ go get github.com/tj/node-prune\n```\n\n## Usage\n\nIn your app directory:\n\n```\n$ node-prune\n\nfiles total 27,330\nfiles removed 3,990\nsize removed 13 MB\n   duration 200ms\n```\n\nSomewhere else:\n\n```\n$ node-prune path/to/node_modules\n\nfiles total 27,330\nfiles removed 3,990\nsize removed 13 MB\n   duration 200ms\n```\n\nOr add to the ``package.json`` scripts field\n\n```\n  \"scripts\": {\n    \"postinstall\": \"node-prune\"\n  }\n```\n\n## Why?\n\n![huge](https://pbs.twimg.com/media/DEIV_1XWsAAlY29.jpg)\n\n---\n\n[![GoDoc](https://godoc.org/github.com/tj/node-prune?status.svg)](https://godoc.org/github.com/tj/node-prune)\n![](https://img.shields.io/badge/license-MIT-blue.svg)\n![](https://img.shields.io/badge/status-stable-green.svg)\n\n\u003ca href=\"https://apex.sh\"\u003e\u003cimg src=\"http://tjholowaychuk.com:6000/svg/sponsor\"\u003e\u003c/a\u003e\n","funding_links":[],"categories":["Go","others","Tools","0. 前端自动化(Workflow)"],"sub_categories":["React Components"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj%2Fnode-prune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftj%2Fnode-prune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj%2Fnode-prune/lists"}