Skip to content

A small and fast utility to split semver string in major minor patch version object

License

Notifications You must be signed in to change notification settings

NaturalIntelligence/semver-split

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semver-split

A small and fast utility to split semver string in major minor patch version object

const split = require('semver-split');
var semver = split("1.2.5"); // { major: 1, minor: 2, patch: 5}
var semver = split("1.2.x"); // { major: 1, minor: 2, patch: 'x'}
var semver = split("1.x"); // { major: 1, minor: 'x'}
var semver = split("*"); // { major: '*'}

About

A small and fast utility to split semver string in major minor patch version object

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published