{"id":19621326,"url":"https://github.com/commenthol/versionn","last_synced_at":"2026-05-14T17:36:20.795Z","repository":{"id":21434599,"uuid":"24752808","full_name":"commenthol/versionn","owner":"commenthol","description":"Change version information across multiple files","archived":false,"fork":false,"pushed_at":"2023-10-20T17:00:28.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T12:05:39.248Z","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/commenthol.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":"2014-10-03T09:15:59.000Z","updated_at":"2023-02-19T10:11:18.000Z","dependencies_parsed_at":"2023-10-20T18:32:40.314Z","dependency_job_id":null,"html_url":"https://github.com/commenthol/versionn","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"bd92e679d280f75f1af5b66b90b7cabe89c72711"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fversionn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fversionn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fversionn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fversionn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commenthol","download_url":"https://codeload.github.com/commenthol/versionn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240914941,"owners_count":19878068,"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-11-11T11:22:23.375Z","updated_at":"2026-05-14T17:36:15.775Z","avatar_url":"https://github.com/commenthol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Versionn\n\n\u003e Change Version information across multiple files\n\nChanges Version information in\n\n* package.json\n* component.json\n* bower.json\n* any other file of choice containing a `VERSION` variable\n\nOffering a module with support for npm, bower, component, ... requires to update the version information in the various files.\n`versionn` helps here to keep all the version numbers within the files in sync.\n\nYou can either use a file called `VERSION` in the root folder of your project which just contains the [semver][] version, or just use the information contained in `package.json`, `bower.json` or `component.json`.\n\nBy default the version information is being extracted from the files in the following order.\n\n1. VERSION\n2. package.json\n3. bower.json\n4. component.json\n\nAdditionally any file can be used which contains the pattern\n\n```\nVERSION = \"\u003csemver\u003e\"\n```\n\nTo increment the version information you can choose one of the commands:\n\n    premajor|preminor|prepatch|prerelease|major|minor|patch|pre|same\n\n## Installation\n\n```\nnpm install -g versionn\n```\n\n## Usage\n\n```\nversionn [premajor|preminor|prepatch|prerelease|major|minor|patch|pre|same|set] [-e \u003cfile\u003e] [-d \u003cdir\u003e] [-t] [-u] [filenames]\n\npremajor|preminor|prepatch|prerelease|major|minor|patch|pre\n    Increase Version by ...\n\nsame\n    Update all version tags to the first version found\n\nset \u003cversion\u003e\n    Sets all version tags to \u003cversion\u003e\n\n-e, --extract \u003cfile\u003e\n    extract version information from \u003cfile\u003e\n\n-d, --dir \u003cdir\u003e\n    apply versionn in directory \u003cdir\u003e\n\n-t, --tag\n    Set Git version tag\n\n-u, --untag\n    Delete Git version tag\n\n-c, --commit\n   Git commit with version tag\n\n-i, --info\n    Display version information of inspected project.\n\n-h, --help\n    Display help information.\n\n--version\n    Display version.\n```\n\n**Examples:**\n\nApplies the same version to all files `VERSION`, `package.json`, `bower.json`, `component.json`:\n\n    versionn\n\nIncrement the `minor` version of `package.json` only:\n\n    versionn minor package.json\n\nExtract the version from `VERSION` and increase `bower.json` and `component.json` by `premajor` version. Note: `VERSION` will *NOT* be increased!\n\n    versionn premajor -e VERSION bower.json component.json\n\nChoose a different directory other that the current-working-directory:\n\n    versionn -d \u003cotherdir\u003e\n\nGit-tag the version\n\n    versionn -t\n\nRemove the Git-tag with:\n\n    versionn -u\n\n## Contribution\n\nIf you contribute code to this project, you are implicitly allowing your code\nto be distributed under the MIT license. You are also implicitly verifying that\nall code is your original work.\n\n## License\n\nCopyright (c) 2016 commenthol\nSoftware is released under [MIT][license].\n\n[license]: ./LICENSE\n[semver]: http://semver.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fversionn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommenthol%2Fversionn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fversionn/lists"}