semver
npmv7.8.5The semantic version parser used by npm.
Safe to adopt
Yes — semver scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 82 days ago. 11 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 82 days ago. 11 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 99 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 4 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
ISC — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding semver to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=10
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the semver README.
const semver = require('semver')
semver.valid('1.2.3') // '1.2.3'
semver.valid('a.b.c') // null
semver.clean(' =v1.2.3 ') // '1.2.3'
semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true
semver.gt('1.2.3', '9.8.7') // false
semver.lt('1.2.3', '9.8.7') // true
semver.minVersion('>=1.0.0') // '1.0.0'
semver.valid(semver.coerce('v2')) // '2.0.0'
semver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7'Dependencies
Declared by semver v7.8.5. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (4)
Used by
Popular packages that depend on semver.
Node.js releases data
An AST-based pattern checker for JavaScript.
Determine if the current node version supports the `--preserve-symlinks` flag.
TypeScript execution environment and REPL for node.js, with source map support
Universal WHATWG Fetch API for Node, Browsers and React Native
Type safe SQL query builder
A library for interacting with the app.json
Fast and low overhead web framework, for Node.js
The React Native multithreading library
A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)
Official client encryption module for the MongoDB Node.js driver
The official MongoDB driver for Node.js
convert from v8 coverage format to istanbul's format
The official Node.js client library for Gel
A JavaScript implementation of many web standards
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
Structured diagnostic code library
A slightly nicer interface to Postgres over node-libpq
Utilities for ESLint plugins.
A framework for building native apps using React
Calculate specificity of a CSS Selector
string representations of objects in node and the browser
No description provided.
Leaner CSS
Relationship graph
Dependencies (left) and dependents (right) of semver.
Frequently installed together
TypeScript definitions for node
Lightweight debugging utility for Node.js and the browser
An AST-based pattern checker for JavaScript.
the most correct and second fastest glob implementation in JavaScript
The Expo SDK
Get and typecast environment variables.
TypeScript definitions for debug
A framework for building native apps using React
A module for reading, writing, and manipulating JSON files
Resolve the path of a module like `require.resolve()` but from a given path
Expo Router is a file-based router for React Native and web applications.
A library for Expo config plugins
Release history
11 releases in the last two years, typically about 14 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 7.8.5latest | 2 months ago | 99 KB | ISC |
| 7.8.4 | 3 months ago | 98 KB | ISC |
| 7.8.3 | 3 months ago | 98 KB | ISC |
| 7.8.2 | 3 months ago | 98 KB | ISC |
| 7.8.1 | 3 months ago | 98 KB | ISC |
| 7.8.0 | 4 months ago | 98 KB | ISC |
| 7.7.4 | 7 months ago | 96 KB | ISC |
| 7.7.3 | 11 months ago | 95 KB | ISC |
| 7.7.2 | 1 year ago | 95 KB | ISC |
| 7.7.1 | 1 year ago | 94 KB | ISC |
| 7.7.0 | 1 year ago | 94 KB | ISC |
| 7.6.3 | 2 years ago | 94 KB | ISC |
| 7.6.2 | 2 years ago | 93 KB | ISC |
| 7.6.1 | 2 years ago | 93 KB | ISC |
| 7.6.0 | 2 years ago | 92 KB | ISC |
Overview
semver is an npm package that the semantic version parser used by npm. It has 55 known dependents in the graph. The latest version is 7.8.5, released under the ISC license.
Who should use it
Teams working in the npm ecosystem who need the semantic version parser used by npm and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (ISC).
- Trusted by 55 other packages.
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use semver?
Yes — semver scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 82 days ago. 11 releases in the last 2 years.
How do I install semver?
Run `npm install semver` to add semver to your npm project.
What license is semver released under?
semver is distributed under the ISC license.
How popular is semver?
npm does not publish download counts. Within PackageGraph's crawl, 55 known packages depend on semver.
Is semver still maintained?
The most recent release of semver (v7.8.5) was published 2 months ago.
Does semver run install scripts?
No. semver does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.