{"_id":"parse-semver","_rev":"2764649","name":"parse-semver","description":"Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"npm:tunnckocore","email":""},{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"time":{"modified":"2022-04-02T08:53:32.000Z","created":"2015-03-26T07:48:09.860Z","1.1.1":"2016-02-23T01:22:28.753Z","1.1.0":"2015-07-19T13:06:23.096Z","1.0.1":"2015-04-17T01:24:38.885Z","1.0.0":"2015-03-26T09:52:59.142Z","0.0.0":"2015-03-26T07:48:09.860Z"},"users":{},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"repository":{"type":"git","url":"git+https://github.com/tunnckocore/parse-semver.git"},"versions":{"1.1.1":{"name":"parse-semver","version":"1.1.1","description":"Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/parse-semver.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"semver":"^5.1.0"},"devDependencies":{"assertit":"^0.1.0"},"keywords":["equal","helper","is","kindof","normalize","npm","object","parse","parser","range","semver","shallow","short","shorthand","utils","validate","version"],"gitHead":"c104abf03ae25fa0046d6c0249c78a5a5824a49f","bugs":{"url":"https://github.com/tunnckocore/parse-semver/issues"},"homepage":"https://github.com/tunnckocore/parse-semver#readme","_id":"parse-semver@1.1.1","_shasum":"9a4afd6df063dc4826f93fba4a99cf223f666cb8","_from":".","_npmVersion":"3.7.1","_nodeVersion":"5.6.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"9a4afd6df063dc4826f93fba4a99cf223f666cb8","size":5318,"noattachment":false,"key":"/parse-semver/-/parse-semver-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-semver/download/parse-semver-1.1.1.tgz"},"maintainers":[{"name":"npm:tunnckocore","email":""},{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/parse-semver-1.1.1.tgz_1456190543534_0.6723814748693258"},"directories":{},"publish_time":1456190548753,"_hasShrinkwrap":false,"_cnpm_publish_time":1456190548753,"_cnpmcore_publish_time":"2021-12-16T23:20:34.095Z"},"1.1.0":{"name":"parse-semver","version":"1.1.0","description":"Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/parse-semver.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"semver":"~5.0.1"},"devDependencies":{"assertit":"^0.1.0"},"keywords":["equal","helper","is","kindof","normalize","npm","object","parse","parser","range","semver","shallow","short","shorthand","utils","validate","version"],"gitHead":"410c22a6998284e381fb8e39b750381bed40a8c3","bugs":{"url":"https://github.com/tunnckocore/parse-semver/issues"},"homepage":"https://github.com/tunnckocore/parse-semver#readme","_id":"parse-semver@1.1.0","_shasum":"335308123c937051fd22b76ffd72e02b5fe4b154","_from":".","_npmVersion":"3.1.2","_nodeVersion":"2.3.4","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"335308123c937051fd22b76ffd72e02b5fe4b154","size":5150,"noattachment":false,"key":"/parse-semver/-/parse-semver-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-semver/download/parse-semver-1.1.0.tgz"},"maintainers":[{"name":"npm:tunnckocore","email":""},{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{},"publish_time":1437311183096,"_hasShrinkwrap":false,"_cnpm_publish_time":1437311183096,"_cnpmcore_publish_time":"2021-12-16T23:20:34.489Z"},"1.0.1":{"name":"parse-semver","version":"1.0.1","description":"Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly"},"author":{"name":"Charlike Mike Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/tunnckoCore/parse-semver.git"},"keywords":["equal","helper","is","kindof","normalize","npm","object","parse","parser","range","semver","shallow","short","shorthand","utils","validate","version"],"license":{"type":"MIT","url":"https://github.com/tunnckoCore/parse-semver/blob/master/license.md"},"dependencies":{"semver":"~4.3.3"},"devDependencies":{"is-equal-shallow":"~0.1.1","istanbul":"~0.3.11","mocha":"~2.2.1"},"gitHead":"44d37b1b9de5f40570ff6c7719835f9a08d8b8d1","bugs":{"url":"https://github.com/tunnckoCore/parse-semver/issues"},"homepage":"https://github.com/tunnckoCore/parse-semver","_id":"parse-semver@1.0.1","_shasum":"26ef20f60eeb29634e2aa689f33920bf159b9a30","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"npm:tunnckocore","email":""},{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"26ef20f60eeb29634e2aa689f33920bf159b9a30","size":5441,"noattachment":false,"key":"/parse-semver/-/parse-semver-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-semver/download/parse-semver-1.0.1.tgz"},"directories":{},"publish_time":1429233878885,"_hasShrinkwrap":false,"_cnpm_publish_time":1429233878885,"_cnpmcore_publish_time":"2021-12-16T23:20:34.700Z"},"1.0.0":{"name":"parse-semver","version":"1.0.0","description":"Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly"},"author":{"name":"Charlike Mike Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/tunnckoCore/parse-semver.git"},"keywords":["equal","helper","is","kindof","normalize","npm","object","parse","parser","range","semver","shallow","short","shorthand","utils","validate","version"],"license":{"type":"MIT","url":"https://github.com/tunnckoCore/parse-semver/blob/master/license.md"},"dependencies":{"semver":"~4.3.1"},"devDependencies":{"is-equal-shallow":"~0.1.1","istanbul":"~0.3.11","mocha":"~2.2.1"},"gitHead":"d4c58e98180b3708d1b41be87cf1ae2a1b745827","bugs":{"url":"https://github.com/tunnckoCore/parse-semver/issues"},"homepage":"https://github.com/tunnckoCore/parse-semver","_id":"parse-semver@1.0.0","_shasum":"b33998c654284d8b7907c31f728fdcaea11efe1d","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"npm:tunnckocore","email":""},{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"b33998c654284d8b7907c31f728fdcaea11efe1d","size":5447,"noattachment":false,"key":"/parse-semver/-/parse-semver-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-semver/download/parse-semver-1.0.0.tgz"},"directories":{},"publish_time":1427363579142,"_hasShrinkwrap":false,"_cnpm_publish_time":1427363579142,"_cnpmcore_publish_time":"2021-12-16T23:20:34.939Z"},"0.0.0":{"name":"parse-semver","version":"0.0.0","description":"Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly"},"author":{"name":"Charlike Mike Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/tunnckoCore/parse-semver.git"},"keywords":[],"license":{"type":"MIT","url":"https://github.com/tunnckoCore/parse-semver/blob/master/license.md"},"dependencies":{"is-kindof":"^1.0.0","parse-github-short-url":"^2.0.0","semver":"^4.3.1"},"devDependencies":{"istanbul-harmony":"~0.3.1","mocha":"~2.2.1"},"bugs":{"url":"https://github.com/tunnckoCore/parse-semver/issues"},"homepage":"https://github.com/tunnckoCore/parse-semver","_id":"parse-semver@0.0.0","_shasum":"fd0cb23d1a60aebaeb9037b532392c3e4574accc","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"npm:tunnckocore","email":""},{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"fd0cb23d1a60aebaeb9037b532392c3e4574accc","size":4772,"noattachment":false,"key":"/parse-semver/-/parse-semver-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-semver/download/parse-semver-0.0.0.tgz"},"directories":{},"publish_time":1427356089860,"_hasShrinkwrap":false,"_cnpm_publish_time":1427356089860,"_cnpmcore_publish_time":"2021-12-16T23:20:35.177Z"}},"readme":"# [parse-semver][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] \n\n> Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.\n\n[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]\n\n\n## Install\n```\nnpm i parse-semver --save\nnpm test\n```\n\n\n## API\n> For more use-cases see the [tests](./test.js)\n\n### [parseSemver](./index.js#L40)\n> It returns object with `original` version given, expanded semver `range`, and `version`\nwhich is valid [semver](http://npm.im/semver) version.\n\n- `<shorthand>` **{String}** the shorthand to parse, like `docks@v2.2.0`\n- `return` **{Object}** object with few properties\n\n**Example**\n\n```js\nvar parseSemver = require('parse-semver')\n\nparseSemver('docks@~3.4.5')\n//=> {name: 'docks', original: '~3.4.5', range: '>=3.4.5 <3.5.0', version: '3.4.5'}\n\nparseSemver('docks@v1.2.3')\n//=> {name: 'docks', original: 'v1.2.3', range: '1.2.3', version: '1.2.3'}\n\nparseSemver('docks@^2.2.2')\n//=> {name: 'docks', original: '^2.2.2', range: '>=2.2.2 <3.0.0', version: '2.2.2'}\n\nparseSemver('docks')\n//=> {name: 'docks', original: '', range: '*', version: 'latest'}\n```\n\n\n## Related\n- [benz](https://github.com/tunnckocore/benz): Compose your control flow with absolute elegance. Support async/await, callbacks, thunks, generators,… [more](https://github.com/tunnckocore/benz)\n- [parse-git-log](https://github.com/tunnckoCore/parse-git-log): Parse default `git log` style to array of objects from git repository… [more](https://github.com/tunnckoCore/parse-git-log)\n- [parse-github-url](https://github.com/jonschlinkert/parse-github-url): Parse a github URL into an object.\n- [parse-git-config](https://github.com/jonschlinkert/parse-git-config): Parse `.git/config` into a JavaScript object. sync or async.\n- [vez](https://github.com/tunnckocore/vez): Middleware composition at new level. Ultimate alternative to `ware`, `plugins`, `koa-compose` and… [more](https://github.com/tunnckocore/vez)\n\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/parse-semver/issues/new).  \nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckocore.tk][author-www-img]][author-www-url] [![keybase tunnckocore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n\n[npmjs-url]: https://www.npmjs.com/package/parse-semver\n[npmjs-img]: https://img.shields.io/npm/v/parse-semver.svg?label=parse-semver\n\n[license-url]: https://github.com/tunnckoCore/parse-semver/blob/master/LICENSE.md\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg\n\n\n[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/parse-semver\n[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/parse-semver.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/parse-semver\n[travis-img]: https://img.shields.io/travis/tunnckoCore/parse-semver.svg\n\n[coveralls-url]: https://coveralls.io/r/tunnckoCore/parse-semver\n[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/parse-semver.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/parse-semver\n[david-img]: https://img.shields.io/david/tunnckoCore/parse-semver.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/messages\n[new-message-img]: https://img.shields.io/badge/send%20me-message-green.svg\n","_attachments":{},"homepage":"https://github.com/tunnckocore/parse-semver#readme","bugs":{"url":"https://github.com/tunnckocore/parse-semver/issues"},"license":"MIT"}