Comparing version 0.1.2 to 0.1.3
/* | ||
* comparev 0.1.2 | ||
* comparev 0.1.3 | ||
* Easily compare versions numbers (semver version) | ||
@@ -10,2 +10,2 @@ * https://github.com/superRaytin/node-comparev | ||
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){function d(a,b){if(a===b)return 0;var c=a.split("."),d=b.split(".");c=c.map(function(a){return parseInt(a)}),d=d.map(function(a){return parseInt(a)});var e=c[0]-d[0],f=c[1]-d[1],g=c[2]-d[2];return e>0?1:0===e&&f>0?1:0===e&&0===f&&g>0?1:-1}b.exports=d},{}]},{},[1]); | ||
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){function d(a,b){if(a===b)return 0;var c=a.split("."),d=b.split(".");c=c.map(function(a){return parseInt(a)}),d=d.map(function(a){return parseInt(a)});var e=c[0]-d[0],f=c[1]-d[1],g=c[2]-d[2];return e>0?1:0===e&&f>0?1:0===e&&0===f&&g>0?1:-1}"function"==typeof define&&define.amd?define(function(){return d}):"undefined"!=typeof window&&(window.comparev=d),b.exports=d},{}]},{},[1]); |
/* | ||
* comparev 0.1.2 | ||
* comparev 0.1.3 | ||
* Easily compare versions numbers (semver version) | ||
@@ -41,2 +41,13 @@ * https://github.com/superRaytin/node-comparev | ||
// use in AMD environment | ||
if (typeof define === 'function' && define.amd) { | ||
define(function(){ | ||
return compare; | ||
}); | ||
} | ||
// use in browser | ||
else if (typeof window !== 'undefined') { | ||
window.comparev = compare; | ||
} | ||
module.exports = compare; |
{ | ||
"name": "comparev", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Easily compare versions numbers (semver version)", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
# comparev | ||
> Easily compare versions numbers (semver version) | ||
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] | ||
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Bower version][bower-image]][bower-url] | ||
@@ -11,5 +11,9 @@ [![comparev](https://nodei.co/npm/comparev.png)](https://npmjs.org/package/comparev) | ||
[npm-image]: http://img.shields.io/npm/v/comparev.svg | ||
[bower-url]:http://badge.fury.io/bo/comparev | ||
[bower-image]: https://badge.fury.io/bo/comparev.svg | ||
# Install | ||
### NPM | ||
``` | ||
@@ -19,4 +23,12 @@ $ npm install comparev | ||
### Bower | ||
``` | ||
$ bower install comparev | ||
``` | ||
# Usage | ||
### Node.js | ||
```js | ||
@@ -23,0 +35,0 @@ var comparev = require('comparev'); |
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
7589
9
136
59