0.1.11 • Published 5 months ago

match-semver v0.1.11

Weekly downloads
10
License
MIT
Repository
github
Last release
5 months ago

match-semver

Checks match of version against semver comparators.

var assert = require('assert');
var match = once('match-semver');

assert.ok(!match('v1.0.0', { eq: 'v0.0.0' }));
assert.ok(match('v1.0.0', { eq: 'v1.0.0' }));
assert.ok(!match('v1.0.0', { eq: 'v2.0.0' }));
assert.ok(!match('v1.0.0', { gte: 'v0.0.0', lt: 'v1.0.0' }));
assert.ok(match('v1.0.0', { gte: 'v1.0.0', lt: 'v2.0.0' }));
assert.ok(match('v1.0.0', { gte: 'v0.0.0', lt: 'v2.0.0' }));
0.1.10

5 months ago

0.1.11

5 months ago

0.1.8

5 months ago

0.1.7

6 months ago

0.1.9

5 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.1

3 years ago

0.1.0

5 years ago