{"id":15531737,"url":"https://github.com/jacobq/is-exact-version","last_synced_at":"2025-04-23T13:17:33.895Z","repository":{"id":40294222,"uuid":"155768641","full_name":"jacobq/is-exact-version","owner":"jacobq","description":"Identify whether a semver string refers to an exact (single) version or range of (multiple) versions","archived":false,"fork":false,"pushed_at":"2025-03-26T18:52:59.000Z","size":940,"stargazers_count":1,"open_issues_count":18,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T13:17:07.343Z","etag":null,"topics":["semver","versioning","versioning-semantics"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jacobq.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":"2018-11-01T19:57:59.000Z","updated_at":"2022-03-08T03:01:42.000Z","dependencies_parsed_at":"2023-02-02T20:16:19.066Z","dependency_job_id":"3b3813a1-ee28-476a-94d4-1e8ce9462852","html_url":"https://github.com/jacobq/is-exact-version","commit_stats":{"total_commits":281,"total_committers":5,"mean_commits":56.2,"dds":0.5871886120996441,"last_synced_commit":"3c04ca2539181bf5117d6d729852a52d695276fe"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobq%2Fis-exact-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobq%2Fis-exact-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobq%2Fis-exact-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobq%2Fis-exact-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacobq","download_url":"https://codeload.github.com/jacobq/is-exact-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250439295,"owners_count":21430824,"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":["semver","versioning","versioning-semantics"],"created_at":"2024-10-02T11:27:48.071Z","updated_at":"2025-04-23T13:17:33.874Z","avatar_url":"https://github.com/jacobq.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-exact-version\n\n[![npm version][npm-image]][npm-url]\n[![build status][gh-actions-image]][gh-actions-url]\n[![CodeClimate maintainability rating (percent)][code-climate-image]][code-climate-url]\n[![test coverage][codecov-image]][codecov-url]\n[![This project uses conventional commits][conventional-commits-image]][conventional-commits-url]\n\nThis module is a complete re-write of [bendrucker/exact-version](https://github.com/bendrucker/exact-version).\nIt drops support for end-of-life versions of node, is written in TypeScript, and uses Jest for testing.\n\n## Why another library?\n\nI needed something more consistent and complete\n(e.g. behavior matching package.json version range string spec, including support for \"commitish\" values),\nand I first attempted to [make a PR](https://github.com/bendrucker/exact-version/pull/1)\nbut then was met with belligerence.\nMaking my own implementation seemed the more civil course of action than engaging in an argument.\n\n## Why should I use this library?\n\n* Uses node's own [`semver`](https://www.npmjs.com/package/semver) module as much as possible,\n  and consequently uses no [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp)\n  of its own.\n* `strictNullChecks` \u0026 `noImplicitAny` are both enabled in [`tsconfig.json`](tslint.json).\n* Thorough test suite clearly indicates behavior.\n\n## Usage\n\n*Example*: ([try it on RunKit](https://npm.runkit.com/is-exact-version))\n \n```js\nimport { isExactVersion } from \"is-exact-version\";\n\nconst examples = [\n  '^1.0.0',\n  '~1.1.0',\n  '1.1.1',\n  '1.0.0-beta.1',\n  'user/is-exact-version#commit'\n];\nfor (const s of examples) {\n  console.log(`${s} -\u003e ${isExactVersion(s)}`);\n}\n\n// Log:\n// \"^1.0.0 -\u003e false\"\n// \"~1.1.0 -\u003e false\"\n// \"1.1.1 -\u003e true\"\n// \"1.0.0-beta.1 -\u003e true\"\n```\n\n## Requirements\n\n* Node \u003e= 16.* (\u003e= 12.* should work, but is not tested)\n  For older versions use the 1.x version of this package.\n\n## Support / questions\n\nIf you have any questions or suggestions related to this package feel free to create a new issue.\nHowever, it should be noted that I have not actually needed to use this for a long time,\nand the main reason I keep it around is for practice\n(\"[kata](https://www.soapui.org/testing-dojo/testing-katas/what-are-testing-katas/)\" if you will),\ne.g. learning to use\n[GitHub Actions](https://github.com/features/actions)\nas well as\n[ESM](https://nodejs.org/api/esm.html) in [TypeScript](https://www.typescriptlang.org/docs/handbook/esm-node.html).\n\n## Development\n\nThis package (optionally) uses [debug-js/debug](https://github.com/debug-js/debug)\nand will output debugging information if the `DEBUG` environment variable\nenables `is-exact-version`. e.g.\n\n```sh\n$ DEBUG=is-exact-version node some-app.js\n```\n\nNot that that's particularly useful for most people...\n\nThis project also strives to adhere to the [conventional commits standard](https://www.conventionalcommits.org/).\n\n## License\n\nThis project is licensed under the terms of the open source MIT License.\nSee [`LICENSE`](LICENSE) for the complete text.\n\n[npm-image]: https://img.shields.io/npm/v/is-exact-version.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/is-exact-version\n[gh-actions-image]: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fjacobq%2Fis-exact-version%2Fbadge\u0026style=flat-square\n[gh-actions-url]: https://actions-badge.atrox.dev/jacobq/is-exact-version/goto\n[code-climate-image]: https://img.shields.io/codeclimate/maintainability-percentage/jacobq/is-exact-version.svg?style=flat-square\n[code-climate-url]: https://codeclimate.com/github/jacobq/is-exact-version\n[codecov-image]: https://img.shields.io/codecov/c/github/jacobq/is-exact-version.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/jacobq/is-exact-version\n[conventional-commits-image]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square\n[conventional-commits-url]: https://conventionalcommits.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobq%2Fis-exact-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobq%2Fis-exact-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobq%2Fis-exact-version/lists"}