0.1.11 • Published 11 months ago

match-semver v0.1.11

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

11 months ago

0.1.11

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.9

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.1

3 years ago

0.1.0

6 years ago