
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
is-version-newer
Advanced tools
Checks if a given version string ([v]x.x.x.......[labels]) is newer compared to another version string.
$ npm install is-version-newer
Tests
$ npm test
A lot of non-npm packages and software don't use semver, Chrome's V8 for example uses a 4-part versioning pattern (x.x.x.x).
var isVersionNewer = require('is-version-newer')
isVersionNewer('0.0.1', '0.0.7') // true
isVersionNewer('0.0.68', '0.1.2') // true
isVersionNewer('0.56.71', '1.0.0') // true
isVersionNewer('0.9999999999999999.71', '1.0.0') // true
isVersionNewer('0.0.1.0', '0.0.2') // true
isVersionNewer('0.0.1.0', '0.1.0') // true
isVersionNewer('0.0.1.0', '1.0.0') // true
isVersionNewer('1.0.1.0', '1.1.0') // true
isVersionNewer('3.0.2.0', '3.0.1.1') // false
isVersionNewer('3.0.2.0', '3.0.0.1') // false
isVersionNewer('3.0.2.0', '3.0.0.0') // false
isVersionNewer('3.0.0.0', '2.999.999.999') // false
// labels
isVersionNewer('0.0.1.0-build_label1.2.3.4', '0.1.0-build_label1.2.3.4') // true
// infinite parts
isVersionNewer('1.0.1.0.5454.43643.4390854.565.6.554.43.321.3.4',
'1.0.1.0.5454.43643.4390854.565.6.554.44.321.3.4') // true
// prefixes
isVersionNewer('version1.0.1.0', 'v1.1.0') // true
MIT
FAQs
check if a version string is newer than an existing version string
We found that is-version-newer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.