Skip to content

holepunchto/semifies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semifies

Slimmed down satisfies from semver

npm install semifies

Usage

const semifies = require('semifies')

// same-ish as semver.satisfies

console.log(semifies('1.5.0', '^1.3.0')) // true
console.log(semifies('2.0.0', '^1.3.0')) // false
console.log(semifies('2.0.0', '^1.3.0 || ~2.0.0')) // true

Passes the test fixtures from semver

License

Apache-2.0

About

Slimmed down satisfies from semver

Resources

License

Stars

Watchers

Forks

Packages

No packages published