{"id":19466888,"url":"https://github.com/jaredkrinke/version_ts","last_synced_at":"2026-05-14T23:37:01.434Z","repository":{"id":62422472,"uuid":"440744202","full_name":"jaredkrinke/version_ts","owner":"jaredkrinke","description":"CLI to bump/tag versions in \"version.ts\" for Deno modules","archived":false,"fork":false,"pushed_at":"2021-12-22T23:48:12.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-16T22:53:31.498Z","etag":null,"topics":["deno","semver","version"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit-0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredkrinke.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":"2021-12-22T05:32:25.000Z","updated_at":"2021-12-22T23:48:13.000Z","dependencies_parsed_at":"2022-11-01T17:45:45.357Z","dependency_job_id":null,"html_url":"https://github.com/jaredkrinke/version_ts","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jaredkrinke/version_ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredkrinke%2Fversion_ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredkrinke%2Fversion_ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredkrinke%2Fversion_ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredkrinke%2Fversion_ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredkrinke","download_url":"https://codeload.github.com/jaredkrinke/version_ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredkrinke%2Fversion_ts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269713884,"owners_count":24463244,"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-08-10T02:00:08.965Z","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":["deno","semver","version"],"created_at":"2024-11-10T18:31:24.484Z","updated_at":"2026-05-14T23:36:56.387Z","avatar_url":"https://github.com/jaredkrinke.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# version_ts\nA simple tool for managing semantic versions of modules stored in `version.ts` (a TypeScript file that can be consumed via `import`).\n\n## Installation\n```text\ndeno install -f -r --allow-read=version.ts --allow-write=version.ts --allow-run=git https://deno.land/x/version_ts/main.ts\n```\n\n## Usage\n```text\n$ version_ts --help\nUsage: version_ts [options] [major|minor|patch]\n\nOptions:\n  -i, --increment \u003cmajor|minor|patch\u003e  Increments the specified version component\n  -s, --set \u003cversion\u003e                  Overwrites the existing version with the specified version\n  -g, --get                            Prints the current version\n  -c, --commit                         Automatically commit the updated version.ts using Git\n  -t, --tag                            Adds a Git tag for the current version\n  --version                            Prints the version of version_ts itself (not the current module!)\n  -h, -?, --help                       Display usage information\n```\n\n## Example\n```text\n$ version_ts --set 0.1.0\nUpdated version from (none) to 0.1.0\n```\n\nThis produces the follow `version.ts` file:\n\n```typescript\nexport const version = \"0.1.0\";\n```\n\nThis can be consumed at compile/run time:\n\n```typescript\nimport version from \"./version.ts\"; // \"0.1.0\"\n```\n\nNow, if you want to tag your Git repository with the current version:\n\n```text\n$ version_ts --commit --tag\nRunning command: git status -z\nRunning command: git add version.ts\nRunning command: git commit -m Version 0.1.0\nRunning command: git status -z\nRunning command: git tag 0.1.0\n```\n\nResulting tag:\n\n```text\n$ git tag\n0.1.0\n```\n\n## More examples\n```text\n$ version_ts patch --commit --tag \nUpdated version from 0.1.0 to 0.1.1\nRunning command: git status -z\nRunning command: git add version.ts\nRunning command: git commit -m Version 0.1.1\nRunning command: git status -z\nRunning command: git tag 0.1.1\n\n$ version_ts minor --commit --tag \nUpdated version from 0.1.1 to 0.2.0\nRunning command: git status -z\nRunning command: git add version.ts\nRunning command: git commit -m Version 0.2.0\nRunning command: git status -z\nRunning command: git tag 0.2.0\n\n$ version_ts major --commit --tag  \nUpdated version from 0.2.0 to 1.0.0\nRunning command: git status -z\nRunning command: git add version.ts\nRunning command: git commit -m Version 1.0.0\nRunning command: git status -z\nRunning command: git tag 1.0.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredkrinke%2Fversion_ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredkrinke%2Fversion_ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredkrinke%2Fversion_ts/lists"}