{"name":"compare-semver","version":"0.2.0","description":"Compare semver versions to many other semver versions","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/index.js | tap-spec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/compare-semver.git"},"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/compare-semver/issues"},"homepage":"https://github.com/scottcorgan/compare-semver","dependencies":{"tape":"^2.13.3","semver":"^2.3.1"},"devDependencies":{"tap-spec":"^0.2.0"},"_id":"compare-semver@0.2.0","dist":{"shasum":"444bf6645a266bb0a486bcd8c2b609a1138531d6","tarball":"http://registry-npm.ywwl.com/compare-semver/download/compare-semver-0.2.0.tgz","integrity":"sha512-GHAG9MjK7teicBNB3MZ/VFbqSeAhXoEEPMyrpyNSO7KFDD/OusxPvEEi3D3pGND2U8TluyzJ8LTGaQVH2KFlLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICadk4xNnkt9SzOy7DpW2qyXYyofD3ckkij/bRSk7/YPAiBb+axVTv92Up3g6VkhpYSo1+KjMI9Hjx9kOyMzL+r2Bg=="}],"size":1475,"noattachment":false,"key":"/compare-semver/-/compare-semver-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"readme":"# compare-semver\n\nCompare semver versions to many other semver versions.\n\n## Install\n\n```\nnpm install compare-semver --save\n```\n\n### Usage\n\n```js\nvar compare = require('compare-semver');\nvar versions = [\n  '0.0.11',\n  '0.1.0',\n  '0.2.0',\n  '0.1.11'\n];\n\nvar maxSemver = compare.max(versions);\n```\n\n## Methods\n\n### max(versions)\n\nReturns the greatest version from the list of versions\n\n* `versions` - an array of semantic versions\n\n### min(versions)\n\nReturns the smallest version from the list of versions\n\n* `versions` - an array of semantic versions\n\n### gt(version, versions)\n\nCompare that  single version is greater than all versions in the list\n\n* `version` - the version to compare\n* `versions` - an array of semantic versions\n\n### lt(version, versions)\n\nCompare that  single version is less than all versions in the list\n\n* `version` - the version to compare\n* `versions` - an array of semantic versions\n\n### unique(version, versions)\n\nIs the given version unique compared to the list of versions\n\n* `version` - the version to compare\n* `versions` - an array of semantic versions\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```\n","publish_time":1404149719024,"_cnpm_publish_time":1404149719024,"dist-tags":{"latest":"1.1.0"}}