Skip to content

Filirom1/smart-vercomp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smart-vercomp Build Status

A smarter version comparison library

This is a clone of the upstream_cmp function in https://github.com/fedora-infra/anitya in JavaScript. A big thanks to @pypingou for the original code in python.

Usage

var vercomp = require('smartvercomp')
vercomp('1.0.rc1', '1.0') # return 1
vercomp('1.0.0', '1.0.1') # return -1
vercomp('10b2', '10a1')   # return 1
vercomp('1', '1')         # return 0

LICENSE MIT

About

A smarter version comparison library

Resources

License

Stars

Watchers

Forks

Packages

No packages published