semver-extra
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "semver-extra", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "semver-extra contains useful methods that aren't included in the vanilla semver package.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,3 +16,3 @@ # semver-extra [![NPM version](https://badge.fury.io/js/semver-extra.svg)](http://badge.fury.io/js/semver-extra) [![Build Status](https://travis-ci.org/kaelzhang/node-semver-extra.svg?branch=master)](https://travis-ci.org/kaelzhang/node-semver-extra) [![Dependency Status](https://gemnasium.com/kaelzhang/node-semver-extra.svg)](https://gemnasium.com/kaelzhang/node-semver-extra) | ||
```js | ||
var se = require('semver-extra'); | ||
var semver = require('semver-extra'); | ||
``` | ||
@@ -23,11 +23,11 @@ | ||
```js | ||
se.validRange('^1.2.3'); // '>=1.2.3-0 <2.0.0-0' | ||
semver.validRange('^1.2.3'); // '>=1.2.3-0 <2.0.0-0' | ||
``` | ||
### se.isStable(version) | ||
### semver.isStable(version) | ||
```js | ||
se.isStable('1.2.3'); // -> true | ||
se.isStable('1.2.3-stable'); // -> false | ||
se.isStable('1.2.3-alpha'); // -> false | ||
semver.isStable('1.2.3'); // -> true | ||
semver.isStable('1.2.3-stable'); // -> false | ||
semver.isStable('1.2.3-alpha'); // -> false | ||
``` | ||
@@ -37,3 +37,3 @@ | ||
### se.isPrerelease(version, [prerelease]) | ||
### semver.isPrerelease(version, [prerelease]) | ||
@@ -46,7 +46,7 @@ - version `string` | ||
```js | ||
se.isPrerelease('1.2.3'); // false | ||
se.isPrerelease('1.2.3-beta'); // true | ||
se.isPrerelease('1.2.3-beta', 'alpha'); // false | ||
se.isPrerelease('1.2.3-1.2.3', '1.2.3'); // true, that supports numeric prerelease versions | ||
se.isPrerelease('1.2.3-alpha.1', 'alpha.1'); // true | ||
semver.isPrerelease('1.2.3'); // false | ||
semver.isPrerelease('1.2.3-beta'); // true | ||
semver.isPrerelease('1.2.3-beta', 'alpha'); // false | ||
semver.isPrerelease('1.2.3-1.2.3', '1.2.3'); // true, that supports numeric prerelease versions | ||
semver.isPrerelease('1.2.3-alpha.1', 'alpha.1'); // true | ||
``` | ||
@@ -57,7 +57,7 @@ | ||
### se.isExplicit(version) | ||
### semver.isExplicit(version) | ||
```js | ||
se.isExplicit('1.0.0'); // true | ||
se.isExplicit('^1.1.0'); // false | ||
semver.isExplicit('1.0.0'); // true | ||
semver.isExplicit('^1.1.0'); // false | ||
``` | ||
@@ -79,6 +79,6 @@ | ||
### se.max(versions) | ||
### semver.max(versions) | ||
```js | ||
se.max(versions); // '1.5.0-rc' | ||
semver.max(versions); // '1.5.0-rc' | ||
``` | ||
@@ -89,6 +89,6 @@ | ||
### se.maxStable(versions) | ||
### semver.maxStable(versions) | ||
```js | ||
se.maxStable(versions); // '1.3.3' | ||
semver.maxStable(versions); // '1.3.3' | ||
``` | ||
@@ -98,8 +98,8 @@ | ||
### se.maxPrerelease(versions, [prerelease]) | ||
### semver.maxPrerelease(versions, [prerelease]) | ||
```js | ||
se.maxPrerelease(versions, 'alpha'); // null | ||
se.maxPrerelease(versions); // '1.5.0-rc' | ||
se.maxPrerelease(versions, 'beta'); // '1.2.3-beta' | ||
semver.maxPrerelease(versions, 'alpha'); // null | ||
semver.maxPrerelease(versions); // '1.5.0-rc' | ||
semver.maxPrerelease(versions, 'beta'); // '1.2.3-beta' | ||
``` | ||
@@ -106,0 +106,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
9138