simple-semver
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "simple-semver", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "simple-semver", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -28,3 +28,17 @@ [![Build Status](https://travis-ci.org/Stanlous/simple-semver.svg?branch=master)](https://travis-ci.org/Stanlous/simple-semver) | ||
```js | ||
const simple_semver = require('simple-semver') | ||
const simpleSemver = require('simple-semver') | ||
simpleSemver.gt('1.3.0', '1.1.0') // true (gt means greater than) | ||
simpleSemver.lt('1.1.0', '1.5.0') // true (lt means less than) | ||
simpleSemver.gte('1.3.0', '1.1.0') // true (gte means greater than or equal) | ||
simpleSemver.gte('1.3.0', '1.3.0') // true | ||
simpleSemver.gte('1.1.0', '1.3.0') // false | ||
simpleSemver.lte('1.1.0', '1.3.0') // true (lte means less than or equal) | ||
simpleSemver.lte('1.3.0', '1.3.0') // true | ||
simpleSemver.lte('1.3.0', '1.1.0') // false | ||
simpleSemver.lt('1.1.0-alpha', '1.5.0') // true ('-alpha' will be ignore) | ||
``` | ||
@@ -31,0 +45,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6312
48