{"id":16860467,"url":"https://github.com/webpro/bump-file","last_synced_at":"2025-10-12T04:37:31.622Z","repository":{"id":57191480,"uuid":"106183330","full_name":"webpro/bump-file","owner":"webpro","description":"Bump JSON files (e.g. package.json and friends)","archived":false,"fork":false,"pushed_at":"2019-08-24T06:02:17.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-21T11:55:22.652Z","etag":null,"topics":[],"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/webpro.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}},"created_at":"2017-10-08T14:37:54.000Z","updated_at":"2023-09-08T17:30:56.000Z","dependencies_parsed_at":"2022-09-01T00:52:36.497Z","dependency_job_id":null,"html_url":"https://github.com/webpro/bump-file","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/webpro/bump-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fbump-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fbump-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fbump-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fbump-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpro","download_url":"https://codeload.github.com/webpro/bump-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fbump-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010268,"owners_count":26084720,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"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":[],"created_at":"2024-10-13T14:24:25.151Z","updated_at":"2025-10-12T04:37:31.573Z","avatar_url":"https://github.com/webpro.png","language":"JavaScript","readme":"# bump-file\n\n## Installation\n\n```\nnpm install bump-file\n```\n\n## Usage\n\n### Node.js\n\n```\nimport bump from 'bump-file';\n\nbump(file, [increment='patch']);\n```\n\nThe second argument can also be an object:\n\n```\nbump(file, {\n  increment,\n  preId,        // Prerelease identifier (such as \"alpha\", \"beta\", \"rc\")\n  get,          // Function to get version. Default: pkg =\u003e pkg.version\n  set           // Function to set version. Default: (pkg, version) =\u003e pkg.version = version\n});\n```\n\n### CLI\n\nYou can install this globally (`npm install -g bump-file`), and use from CLI:\n\n```\nbump file [increment] [preId]\n```\n\n## Examples\n\n```\nbump('package.json', 'minor'); // 1.0.0 → 1.1.0\n\nbump('package.json', {         // 1.4.2 → 2.0.0-beta.0\n  increment: 'premajor',\n  preId: 'beta'\n});\n```\n\nSee the tests for more example.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpro%2Fbump-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpro%2Fbump-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpro%2Fbump-file/lists"}