0.1.11 • Published 10 months ago

match-semver v0.1.11

Weekly downloads
10
License
MIT
Repository
github
Last release
10 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

10 months ago

0.1.11

10 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.9

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.1

3 years ago

0.1.0

5 years ago