{"id":15879996,"url":"https://github.com/vitonsky/gulp-clean-package","last_synced_at":"2026-05-18T03:34:53.843Z","repository":{"id":54799401,"uuid":"522291828","full_name":"vitonsky/gulp-clean-package","owner":"vitonsky","description":"Gulp plugin to clean a `package.json` files","archived":false,"fork":false,"pushed_at":"2023-04-28T21:02:36.000Z","size":25,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T05:03:19.802Z","etag":null,"topics":["build","clean-code","cleaner","gulp","gulp-plugin","gulp-plugins","gulpplugin","package-json","packagejson","plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gulp-clean-package","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vitonsky.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":"2022-08-07T18:23:36.000Z","updated_at":"2022-08-08T19:57:29.000Z","dependencies_parsed_at":"2024-10-27T13:02:32.316Z","dependency_job_id":"1650cbd7-b7f9-4654-9af6-29b96257fa3b","html_url":"https://github.com/vitonsky/gulp-clean-package","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"c186878f9ba52e8180e69ec17aa7be99fc424812"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vitonsky/gulp-clean-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitonsky%2Fgulp-clean-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitonsky%2Fgulp-clean-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitonsky%2Fgulp-clean-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitonsky%2Fgulp-clean-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitonsky","download_url":"https://codeload.github.com/vitonsky/gulp-clean-package/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitonsky%2Fgulp-clean-package/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["build","clean-code","cleaner","gulp","gulp-plugin","gulp-plugins","gulpplugin","package-json","packagejson","plugin"],"created_at":"2024-10-06T03:07:03.784Z","updated_at":"2026-05-18T03:34:53.823Z","avatar_url":"https://github.com/vitonsky.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Gulp plugin to clean a `package.json` files.\n\nIt's remove unnecessary properties, configurable, ready to use out of the box.\n\n# Installation\n\nInstall it as development dependency\n\n`npm install -D gulp-clean-package`\n\n# Usage\n\n```js\nconst cleanPackage = require('gulp-clean-package');\n \ngulp.task('scripts', function() {\n  return gulp.src('./package.json')\n    .pipe(cleanPackage())\n    .pipe(gulp.dest('./dist'));\n});\n```\n\nThis will remove unnecessary properties from `package.json`:\n\n### Input:\n```json\n{\n\t\"name\": \"gulp-clean-package\",\n\t\"version\": \"0.0.1\",\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"git+https://github.com/vitonsky/gulp-clean-package.git\"\n\t},\n\t\"keywords\": [],\n\t\"license\": \"Apache-2.0\",\n\t\"bugs\": {\n\t\t\"url\": \"https://github.com/vitonsky/gulp-clean-package/issues\"\n\t},\n\t\"homepage\": \"https://github.com/vitonsky/gulp-clean-package#readme\",\n\t\"scripts\": {\n\t\t// ...\n\t},\n\t\"devDependencies\": {\n\t\t// ...\n\t},\n\t\"dependencies\": {\n\t\t\"plugin-error\": \"^2.0.0\",\n\t\t\"through2\": \"^4.0.2\"\n\t},\n\t\"eslint\": {\n\t\t// ...\n\t},\n\t\"foo\": {\n\t\t// ...\n\t},\n\t\"bar\": 42,\n}\n```\n\n### Output:\n```json\n{\n\t\"name\": \"gulp-clean-package\",\n\t\"version\": \"0.0.1\",\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"git+https://github.com/vitonsky/gulp-clean-package.git\"\n\t},\n\t\"keywords\": [],\n\t\"license\": \"Apache-2.0\",\n\t\"bugs\": {\n\t\t\"url\": \"https://github.com/vitonsky/gulp-clean-package/issues\"\n\t},\n\t\"homepage\": \"https://github.com/vitonsky/gulp-clean-package#readme\",\n\t\"dependencies\": {\n\t\t\"plugin-error\": \"^2.0.0\",\n\t\t\"through2\": \"^4.0.2\"\n\t}\n}\n```\n\n# Options\n\n```js\n/**\n * New props. It will overwrite exists\n */\nadditionalProperties = {},\n\n/**\n * This props will not remove\n */\npublicProperties = [],\n\n/**\n * This props will remove anyway\n */\npropertiesToRemove = [],\n\n/**\n * Disable default list of ignored props\n */\nnoUseDefaultProperties = false,\n\n/**\n * Style of spaces for JSON result\n */\nindentStyle = '\\t',\n```\n\nExample for input above with config:\n\n```js\nconst cleanPackage = require('gulp-clean-package');\n \ngulp.task('scripts', function() {\n  return gulp.src('./package.json')\n    .pipe(cleanPackage({\n\t\tpublicProperties: ['foo'],\n\t\tpropertiesToRemove: ['repository'],\n\t\tadditionalProperties: {\n\t\t\tname: 'newName',\n\t\t\tbaz: 123,\n\t\t}\n\t}))\n    .pipe(gulp.dest('./dist'));\n});\n```\n\n\nOutput:\n```json\n{\n\t\"name\": \"newName\",\n\t\"version\": \"0.0.1\",\n\t\"keywords\": [],\n\t\"license\": \"Apache-2.0\",\n\t\"bugs\": {\n\t\t\"url\": \"https://github.com/vitonsky/gulp-clean-package/issues\"\n\t},\n\t\"homepage\": \"https://github.com/vitonsky/gulp-clean-package#readme\",\n\t\"dependencies\": {\n\t\t\"plugin-error\": \"^2.0.0\",\n\t\t\"through2\": \"^4.0.2\"\n\t},\n\t\"foo\": {\n\t\t// ...\n\t},\n\t\"baz\": 123\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitonsky%2Fgulp-clean-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitonsky%2Fgulp-clean-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitonsky%2Fgulp-clean-package/lists"}