{"id":22221879,"url":"https://github.com/fabiospampinato/get-current-version","last_synced_at":"2026-02-15T15:06:21.922Z","repository":{"id":65770507,"uuid":"598679536","full_name":"fabiospampinato/get-current-version","owner":"fabiospampinato","description":"Get the version of the currently executing bin.","archived":false,"fork":false,"pushed_at":"2025-01-12T18:50:28.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-18T18:51:18.938Z","etag":null,"topics":["cli","current","get","version"],"latest_commit_sha":null,"homepage":"","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/fabiospampinato.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,"zenodo":null},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2023-02-07T15:46:39.000Z","updated_at":"2025-01-12T18:50:32.000Z","dependencies_parsed_at":"2025-06-19T23:38:21.707Z","dependency_job_id":"626a6589-21b7-466c-a8dc-45353cb8f668","html_url":"https://github.com/fabiospampinato/get-current-version","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"f79b88680a7638b22ed41393b7aabb4c1e8f7fb0"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/fabiospampinato/get-current-version","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fget-current-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fget-current-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fget-current-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fget-current-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/get-current-version/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fget-current-version/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29481926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","current","get","version"],"created_at":"2024-12-02T23:15:59.225Z","updated_at":"2026-02-15T15:06:21.890Z","avatar_url":"https://github.com/fabiospampinato.png","language":"JavaScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":[],"sub_categories":[],"readme":"# Get Current Version\n\nGet the version of the currently executing bin.\n\nThis is meant to be used in combination with [`tiny-updater`](https://github.com/fabiospampinato/tiny-updater) or similar, in order to get the version of the currently executing bin very conveniently, without importing a \"package.json\" and without hard-coding the version number yourself.\n\nSee [`get-current-package`](https://github.com/fabiospampinato/get-current-package) for a more general version of this package.\n\n## Install\n\n```sh\nnpm install get-current-version\n```\n\n## Usage\n\nYou should have something like this in your bin app:\n\n```ts\nimport getCurrentVersion from 'get-current-version';\n\nconsole.log ( getCurrentVersion () ); // 1.0.0\n```\n\nThen executing the bin would produce this:\n\n```\n\u003e my-bin\n\u003c 1.0.0\n```\n\nBasically it detects which entrypoint file is being executed and retrieves its version.\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fget-current-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fget-current-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fget-current-version/lists"}