semver
« Back to VersTracker
Description:
Semantic version parser for node (the one npm uses)
Type: Formula  |  Latest Version: 7.7.3@0  |  Tracked Since: Dec 24, 2025
Links: Homepage  |  GitHub  |  Docs  |  formulae.brew.sh
Stars: 5,369  |  Forks: 553  |  Language: JavaScript  |  Category: Developer tools
Tags: versioning semver node npm javascript parser
Install: brew install semver
About:
A robust JavaScript library for parsing and comparing semantic version strings, following the SemVer 2.0.0 specification. It is the core versioning engine used by npm and provides utilities for validating version ranges, checking constraints, and sorting versions.
Key Features:
  • Parses and compares semantic version strings
  • Handles version ranges and constraints (e.g., ^1.2.3, ~4.5.6)
  • Validates version numbers against the SemVer spec
  • Sorts an array of versions
  • Powering npm's own dependency resolution
Use Cases:
  • Validating and comparing dependency versions in Node.js projects
  • Implementing custom version range logic in development tools
  • Filtering and sorting software releases by version
Alternatives:
  • semver for Rust – Rust implementation; not a direct alternative for Node.js/JavaScript environments
  • python-semver – Python library for semantic versioning; different language ecosystem
Version History
Detected Version Rev Change Commit
Dec 24, 2025 9:55pm 7.7.3 0 VERSION_BUMP 479e81cd