# semver

> The semantic version parser npm uses, as a JavaScript library and command-line tool

Source: https://talira.ai/catalog/semver-gyz2etga
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [libraries / semantic versioning](https://talira.ai/categories/libraries/semantic-versioning), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: ISC[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Supports: [SemVer](https://talira.ai/standards/semver.md)[^3]
- Backed by: [GitHub](https://talira.ai/orgs/github.md)
- Funding: acquired by Microsoft (2018)[^4]

semver (node-semver) is the semantic versioner npm uses: a JavaScript implementation of the SemVer 2.0.0 specification. It parses, validates, cleans, compares, sorts and increments versions, checks whether a version satisfies a range in npm's range syntax (hyphen, X, tilde and caret ranges, with prerelease tags), finds the highest or lowest version that satisfies a range, and coerces loose strings into versions. It also works as a command-line tool.

## Links

- Website: https://semver.npmjs.com/
- GitHub: https://github.com/npm/node-semver

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/semver>[^1]

## Problems it solves

- check whether a version string satisfies a version range in JavaScript
- compare and sort semantic version numbers in Node.js
- bump a package version number in a release script

## Features

- Parse, validate, clean and compare versions
- Check whether a version satisfies a range
- Hyphen, X, tilde and caret ranges with prerelease tags
- Find the highest or lowest version satisfying a range
- Increment versions, including prereleases
- Coerce loose strings into versions
- Load single functions to keep bundles small
- Command-line tool

## Trust

Overall: 0.57 out of 1.
Signals: maintenance 0.62, adoption 0.75, momentum 0.45, community 0.81, backing 0.55, extensibility 0.00.

- last commit 27 days ago
- 3 commits in the last 90 days
- latest release v5.7.3 27 days ago
- 5.5k GitHub stars
- 106 contributors
- 91 Homebrew installs in 30 days
- backed by GitHub
- funding: acquired by Microsoft (2018)

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 28 Nov 2026)
[^2]: https://github.com/npm/node-semver/blob/main/LICENSE (checked 28 Nov 2026)
[^3]: https://github.com/npm/node-semver (checked 28 Nov 2026)
[^4]: https://blogs.microsoft.com/blog/2018/10/26/microsoft-completes-github-acquisition/ (checked 20 Nov 2026)
