NodeVersion
NodeVersion is a software library designed to represent and manipulate Node.js version numbers in tooling, scripts, and deployment pipelines. It provides a canonical, immutable object model for major, minor, and patch components, plus optional pre-release and build metadata, aligned with semantic versioning. The goal is to simplify parsing, formatting, comparison, and range checks across different environments that depend on Node.js versions.
Key features include robust parsing from common formats such as v14.17.0 and 14.17.0-rc.1, normalization to a
The library is designed for use in JavaScript and TypeScript projects and is published to npm under
Use cases include build pipelines, test matrices, and deployment scripts that need to reason about Node.js version