-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
45 lines (45 loc) · 1.86 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"name": "semver-diff",
"version": "0.1.0",
"description": "Get the diff type of two semver versions: 0.0.1 0.0.2 → patch",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/sindresorhus/semver-diff"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"index.js"
],
"keywords": [
"semver",
"version",
"semantic",
"diff",
"difference"
],
"dependencies": {
"semver": "^2.2.1"
},
"devDependencies": {
"mocha": "*"
},
"readme": "# semver-diff [![Build Status](https://travis-ci.org/sindresorhus/semver-diff.svg?branch=master)](https://travis-ci.org/sindresorhus/semver-diff)\n\n> Get the diff type of two [semver](https://github.com/isaacs/node-semver) versions: `0.0.1 0.0.2` → `patch`\n\n\n## Install\n\n```sh\n$ npm install --save semver-diff\n```\n\n\n## Usage\n\n```js\nvar semverDiff = require('semver-diff');\n\nsemverDiff('1.1.1', '1.1.2');\n//=> 'patch'\n\nsemverDiff('0.0.1', '1.0.0');\n//=> 'major'\n\nsemverDiff('0.1.0', '0.1.0+foo');\n//=> 'build'\n\nsemverDiff('0.0.1', '0.0.1');\n//=> null\n\nsemverDiff('0.0.2', '0.0.1');\n//=> null\n```\n\n\n## API\n\n### semverDiff(versionA, versionB)\n\nReturns the difference type between two semver versions, or `null` if they're identical or the second one is lower than the first.\n\nPossible values: `'major'`, `'minor'`, `'patch'`, `'prerelease'`, `'build'`, `null`.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/sindresorhus/semver-diff/issues"
},
"homepage": "https://github.com/sindresorhus/semver-diff",
"_id": "semver-diff@0.1.0",
"_from": "semver-diff@^0.1.0"
}