{"id":15573043,"url":"https://github.com/nodef/extra-version","last_synced_at":"2025-03-29T06:30:31.172Z","repository":{"id":40717154,"uuid":"268017688","full_name":"nodef/extra-version","owner":"nodef","description":"A version is a set of numbers that identify a unique evolution of a system.","archived":false,"fork":false,"pushed_at":"2023-01-14T10:23:02.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T02:38:23.002Z","etag":null,"topics":["compare","extra","from","is","major","minor","patch","rversion","version"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/extra-version","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-30T05:47:43.000Z","updated_at":"2023-01-14T10:22:27.000Z","dependencies_parsed_at":"2023-02-09T19:16:07.096Z","dependency_job_id":null,"html_url":"https://github.com/nodef/extra-version","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodef","download_url":"https://codeload.github.com/nodef/extra-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245727706,"owners_count":20662556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compare","extra","from","is","major","minor","patch","rversion","version"],"created_at":"2024-10-02T18:10:16.236Z","updated_at":"2025-03-29T06:30:31.148Z","avatar_url":"https://github.com/nodef.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A [version] is a set of numbers that identify a unique evolution of a system. [:running:] [:vhs:] [:package:] [:moon:] [:ledger:]\n\nMethods as separate packages:\n- `@extra-version/next`: use [rollup] to bundle this es module.\n- `@extra-version/next.min`: use in browser ([browserify], [uglify-js]).\n\nMost of the ideas are from [Semantic versioning] by [Tom Preston], and\n[semver] by [Isaac Schlueter].\n\n\u003e Stability: Experimental.\n\n```javascript\nconst version = require('extra-version');\n// import * as version from 'extra-version';\n// import * as version from 'https://unpkg.com/extra-version@1.0.0/index.mjs'; (deno)\n\nvar x = version.from('v1.2.3.4');\nx.toString();\n// '1.2.3+4'\n\nvar x = version.from('0.2');\nversion.isUnstable(x);\n// true\n\nvar x = version.from('1.2');\nvar y = version.from('1.2.3');\nversion.compare(x, y);\n// -3\n\nvar x = version.from('1.2');\nvar y = version.next(x, version.MINOR);\ny.toString();\n// '1.3.0'\n```\n\n### reference\n\n| Method                | Action\n|-----------------------|-------\n| [is]                  | Checks if value is version.\n| [isUnstable]          | Checks if version is major 0, or pre-release.\n| [from]                | Converts value to version.\n| [parse]               | Converts string to version.\n| [stringify]           | Converts version to string.\n| [compare]             | Compares two versions. \n| [isEqual]             | Checks if two versions are equal.\n| [next]                | Gives the next version.\n|                       | \n| [MAJOR]               | Defines first major version. (1.0.0)\n| [MINOR]               | Defines first minor version. (0.1.0)\n| [PATCH]               | Defines first patch version. (0.0.1)\n| [RVERSION]            | Regular expression to check a semver string.\n\n\u003cbr\u003e\n\n[![nodef](https://merferry.glitch.me/card/extra-version.svg)](https://nodef.github.io)\n\n[version]: https://semver.org\n[browserify]: https://www.npmjs.com/package/browserify\n[rollup]: https://www.npmjs.com/package/rollup\n[uglify-js]: https://www.npmjs.com/package/uglify-js\n[semver]: https://www.npmjs.com/package/semver\n[Semantic versioning]: https://semver.org\n[Isaac Schlueter]: https://izs.me\n[Tom Preston]: https://tom.preston-werner.com\n[:running:]: https://npm.runkit.com/extra-version\n[:package:]: https://www.npmjs.com/package/extra-version\n[:moon:]: https://www.npmjs.com/package/extra-version.min\n[:ledger:]: https://unpkg.com/extra-version/\n[is]: https://github.com/nodef/extra-version/wiki/is\n[isUnstable]: https://github.com/nodef/extra-version/wiki/isUnstable\n[from]: https://github.com/nodef/extra-version/wiki/from\n[parse]: https://github.com/nodef/extra-version/wiki/parse\n[stringify]: https://github.com/nodef/extra-version/wiki/stringify\n[compare]: https://github.com/nodef/extra-version/wiki/compare\n[isEqual]: https://github.com/nodef/extra-version/wiki/isEqual\n[next]: https://github.com/nodef/extra-version/wiki/next\n[MAJOR]: https://github.com/nodef/extra-version/wiki/MAJOR\n[MINOR]: https://github.com/nodef/extra-version/wiki/MINOR\n[PATCH]: https://github.com/nodef/extra-version/wiki/PATCH\n[RVERSION]: https://github.com/nodef/extra-version/wiki/RVERSION\n[:vhs:]: https://asciinema.org/a/335555\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodef%2Fextra-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-version/lists"}