{"_id":"is-version-newer","_rev":"34-0add753019257c807daf1e34c8ba2f7e","name":"is-version-newer","time":{"modified":"2022-06-19T02:53:20.410Z","created":"2014-01-23T12:04:29.709Z","0.0.1":"2014-01-23T12:04:30.233Z","0.0.2":"2014-01-25T09:21:46.765Z","0.0.3":"2014-01-25T09:23:24.932Z","0.0.4":"2014-02-05T11:23:23.832Z","0.0.5":"2014-02-05T11:24:55.142Z","1.0.0":"2014-03-22T22:26:20.246Z","1.0.1":"2014-05-23T20:29:02.137Z","1.0.2":"2014-11-02T16:29:42.861Z","2.0.0":"2015-02-14T14:09:31.884Z","2.1.0":"2015-02-15T10:46:42.426Z","2.1.1":"2015-06-21T17:39:55.576Z"},"maintainers":[{"name":"roryrjb","email":"roryrjb@gmail.com"}],"dist-tags":{"latest":"2.1.1"},"description":"check if a version string is newer than an existing version string","readme":"# is-version-newer [![Build Status](https://travis-ci.org/roryrjb/is-version-newer.svg?branch=master)](https://travis-ci.org/roryrjb/is-version-newer) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\r\n\r\n> Checks if a given version string ([v]x.x.x.......[labels]) is newer compared to another version string.\r\n\r\n### Installation\r\n\r\n```\r\n$ npm install is-version-newer\r\n```\r\n\r\n__Tests__\r\n\r\n```\r\n$ npm test\r\n```\r\n\r\n### Why?\r\n\r\nA lot of _non-npm_ packages and software don't use __semver__, Chrome's V8 for example uses a 4-part versioning pattern (`x.x.x.x`).\r\n\r\n### API\r\n\r\n```javascript\r\nvar isVersionNewer = require('is-version-newer')\r\n\r\nisVersionNewer('0.0.1', '0.0.7') // true\r\nisVersionNewer('0.0.68', '0.1.2') // true\r\nisVersionNewer('0.56.71', '1.0.0') // true\r\nisVersionNewer('0.9999999999999999.71', '1.0.0') // true\r\nisVersionNewer('0.0.1.0', '0.0.2') // true\r\nisVersionNewer('0.0.1.0', '0.1.0') // true\r\nisVersionNewer('0.0.1.0', '1.0.0') // true\r\nisVersionNewer('1.0.1.0', '1.1.0') // true\r\nisVersionNewer('3.0.2.0', '3.0.1.1') // false\r\nisVersionNewer('3.0.2.0', '3.0.0.1') // false\r\nisVersionNewer('3.0.2.0', '3.0.0.0') // false\r\nisVersionNewer('3.0.0.0', '2.999.999.999') // false\r\n\r\n// labels\r\nisVersionNewer('0.0.1.0-build_label1.2.3.4', '0.1.0-build_label1.2.3.4') // true\r\n\r\n// infinite parts\r\nisVersionNewer('1.0.1.0.5454.43643.4390854.565.6.554.43.321.3.4',\r\n  '1.0.1.0.5454.43643.4390854.565.6.554.44.321.3.4') // true\r\n\r\n// prefixes\r\nisVersionNewer('version1.0.1.0', 'v1.1.0') // true\r\n```\r\n\r\n# License\r\n\r\nMIT\r\n","versions":{"1.0.1":{"name":"is-version-newer","main":"index.js","version":"1.0.1","description":"check if a version string is newer than an existing version string","keywords":["versions","version"],"homepage":"https://github.com/roryrjb/is-version-newer","author":{"name":"Rory Bradford","email":"roryrjb@gmail.com","url":"www.roryrjb.com"},"repository":{"type":"git","url":"https://github.com/roryrjb/is-version-newer.git"},"license":"MIT","bugs":{"url":"http://github.com/roryrjb/is-version-newer/issues","email":"roryrjb@gmail.com"},"_id":"is-version-newer@1.0.1","_shasum":"9d013339c2f8bd5474dc88393c1f896a88cb28f5","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"roryrjb","email":"roryrjb@gmail.com"},"maintainers":[{"name":"roryrjb","email":"roryrjb@gmail.com"}],"dist":{"shasum":"9d013339c2f8bd5474dc88393c1f896a88cb28f5","tarball":"https://registry.npmjs.org/is-version-newer/-/is-version-newer-1.0.1.tgz","integrity":"sha512-fp6GMZaefxTkQQiCRZ6tvAeRQN9b7WBRJ7K9XI8LaekbQtl+vmmxeOM+XC5GxOWDIzy2p3KuuuOQYc5hJtRKQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIy9swCq3JhYfx73WrXArwO/FLUtTn7D8p/a0oJvxs8wIgPr0U3ZHFKmZR5CQWNoR4DAaIKjPruidolKo+ScvGYck="}]},"directories":{},"deprecated":"Development of this module has been stopped."},"1.0.2":{"name":"is-version-newer","main":"index.js","version":"1.0.2","description":"check if a version string is newer than an existing version string","keywords":["versions","version"],"homepage":"https://github.com/roryrjb/is-version-newer","author":{"name":"Rory Bradford","email":"roryrjb@gmail.com","url":"www.roryrjb.com"},"repository":{"type":"git","url":"https://github.com/roryrjb/is-version-newer.git"},"license":"MIT","bugs":{"url":"http://github.com/roryrjb/is-version-newer/issues","email":"roryrjb@gmail.com"},"gitHead":"3ce4ff111651d4a8b5ef6937282f125e59bbb6df","_id":"is-version-newer@1.0.2","scripts":{},"_shasum":"bfd92f29c20b688f60d2c98505be382b425b156b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"roryrjb","email":"roryrjb@gmail.com"},"maintainers":[{"name":"roryrjb","email":"roryrjb@gmail.com"}],"dist":{"shasum":"bfd92f29c20b688f60d2c98505be382b425b156b","tarball":"https://registry.npmjs.org/is-version-newer/-/is-version-newer-1.0.2.tgz","integrity":"sha512-Zg5SnwYJEJTlNDJLx22LQKc9EJG996ltbDJqcSEw379ls/yWqzn0uow6QmLgCFFlWXUmOcOmrx4OmP8EmX9b4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3PVudD7vMF+Xh+s0advNM6XeBgWc2rCW7CM9cSbjRiQIhAM1BXIu54QZKnEfdxA+xrPFWu7Mk+mL4UQV/V9bBl8XA"}]},"directories":{},"deprecated":"Development of this module has been stopped."},"2.0.0":{"name":"is-version-newer","main":"index.js","files":["index.js","test.js","README.md","LICENSE.md"],"scripts":{"test":"node test"},"version":"2.0.0","description":"check if a version string is newer than an existing version string","keywords":["versioning","versions","version"],"homepage":"https://github.com/roryrjb/is-version-newer","author":{"name":"Rory Bradford","email":"roryrjb@gmail.com","url":"www.roryrjb.com"},"repository":{"type":"git","url":"https://github.com/roryrjb/is-version-newer.git"},"license":"MIT","bugs":{"url":"http://github.com/roryrjb/is-version-newer/issues","email":"roryrjb@gmail.com"},"gitHead":"519acdaed531ad2234bdaa59bd0db3db75d9424c","_id":"is-version-newer@2.0.0","_shasum":"64df312aea4de3660ceb320bea0484824c338549","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"roryrjb","email":"roryrjb@gmail.com"},"maintainers":[{"name":"roryrjb","email":"roryrjb@gmail.com"}],"dist":{"shasum":"64df312aea4de3660ceb320bea0484824c338549","tarball":"https://registry.npmjs.org/is-version-newer/-/is-version-newer-2.0.0.tgz","integrity":"sha512-3NebqWliRgCnh8Ik6rTVYkLJGp/Dot27izRzjXyzgrmz3oOdiNxUj8C4ZBgTT9TV8UK4HffgAr4H2sNVDz7MIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEu9RRNAvazDeBIeb0GuevTIoD5pf5DeYAZdk8zCG3sOAiEAjE7uUf1kN95e3+Mzt3wfC1tMdKt7HYPqjBGm5x7wZFk="}]},"directories":{},"deprecated":"Development of this module has been stopped."},"2.1.0":{"name":"is-version-newer","main":"index.js","files":["index.js","test.js","README.md","LICENSE.md"],"scripts":{"test":"node test"},"version":"2.1.0","description":"check if a version string is newer than an existing version string","keywords":["versioning","versions","version"],"homepage":"https://github.com/roryrjb/is-version-newer","author":{"name":"Rory Bradford","email":"roryrjb@gmail.com","url":"www.roryrjb.com"},"repository":{"type":"git","url":"https://github.com/roryrjb/is-version-newer.git"},"license":"MIT","bugs":{"url":"http://github.com/roryrjb/is-version-newer/issues","email":"roryrjb@gmail.com"},"gitHead":"59d17382a27e26036a8743f9ecb3d129bbb348e4","_id":"is-version-newer@2.1.0","_shasum":"a1b8c0a7ae166991110cd30a2cfb2e82cb70ca4b","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"roryrjb","email":"roryrjb@gmail.com"},"maintainers":[{"name":"roryrjb","email":"roryrjb@gmail.com"}],"dist":{"shasum":"a1b8c0a7ae166991110cd30a2cfb2e82cb70ca4b","tarball":"https://registry.npmjs.org/is-version-newer/-/is-version-newer-2.1.0.tgz","integrity":"sha512-w/7AwOGRDgkukg2w6ywpXfSdmWsnr9oEG4pGxBmdCL7Okg/7pbMLH3m4WqHgguIbixM6hQ6byr68Vuhhp9loqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICPQI5Ufzohbq5e+JcokDaZbHi7VkN2pCNnSLlLq8Y5MAiBD/BcBKcOs8NxFc5RrFRsQtokcw0/ddbds8ec2ZQ7aZQ=="}]},"directories":{},"deprecated":"Development of this module has been stopped."},"2.1.1":{"name":"is-version-newer","main":"index.js","files":["index.js","test.js","README.md","LICENSE.md"],"scripts":{"test":"standard && node test"},"version":"2.1.1","description":"check if a version string is newer than an existing version string","keywords":["versioning","versions","version"],"homepage":"https://github.com/roryrjb/is-version-newer","author":{"name":"Rory Bradford","email":"roryrjb@gmail.com","url":"www.roryrjb.com"},"repository":{"type":"git","url":"git+https://github.com/roryrjb/is-version-newer.git"},"license":"MIT","bugs":{"url":"http://github.com/roryrjb/is-version-newer/issues","email":"roryrjb@gmail.com"},"devDependencies":{"standard":"^4.3.1"},"gitHead":"6d34a39b2169c75d598c70ae377fddad892c14c9","_id":"is-version-newer@2.1.1","_shasum":"c2c6a021b890b61f778a3e090bba03ecc8a61215","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.0","_npmUser":{"name":"roryrjb","email":"roryrjb@gmail.com"},"dist":{"shasum":"c2c6a021b890b61f778a3e090bba03ecc8a61215","tarball":"https://registry.npmjs.org/is-version-newer/-/is-version-newer-2.1.1.tgz","integrity":"sha512-RUC11o5A2gjGA4S28eLpcjcd/Jw1lKbK9R9df0CXs/4nqifVYM6kLEKl7cJecI7vHo5vbPgnVlr/vXzX++SZTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHKK6+fBHZ9exRf/sqATMteM//4GA7uBg3J1kqw/41WiAiAsEKAXMeK96DpRAEuFesz6klsLu63MA1w2Xy+KzdIb8Q=="}]},"maintainers":[{"name":"roryrjb","email":"roryrjb@gmail.com"}],"directories":{},"deprecated":"Development of this module has been stopped."}},"homepage":"https://github.com/roryrjb/is-version-newer","keywords":["versioning","versions","version"],"repository":{"type":"git","url":"git+https://github.com/roryrjb/is-version-newer.git"},"author":{"name":"Rory Bradford","email":"roryrjb@gmail.com","url":"www.roryrjb.com"},"bugs":{"url":"http://github.com/roryrjb/is-version-newer/issues","email":"roryrjb@gmail.com"},"license":"MIT","readmeFilename":"README.md","users":{"f124275809":true}}