{"id":19311054,"url":"https://github.com/boxuk/versions","last_synced_at":"2026-07-15T03:31:49.992Z","repository":{"id":2336169,"uuid":"3298035","full_name":"boxuk/versions","owner":"boxuk","description":"Simple tool for comparing version numbers in Clojure and ClojureScript","archived":false,"fork":false,"pushed_at":"2013-05-28T13:16:31.000Z","size":169,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2026-06-23T07:08:41.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.boxuk.com","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boxuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-29T16:09:29.000Z","updated_at":"2017-03-30T07:44:30.000Z","dependencies_parsed_at":"2022-09-06T02:10:48.084Z","dependency_job_id":null,"html_url":"https://github.com/boxuk/versions","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/boxuk/versions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fversions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fversions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fversions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fversions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boxuk","download_url":"https://codeload.github.com/boxuk/versions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fversions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35489566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-10T00:27:30.984Z","updated_at":"2026-07-15T03:31:49.974Z","avatar_url":"https://github.com/boxuk.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Versions [![Build Status](https://secure.travis-ci.org/boxuk/versions.png?branch=master)](http://travis-ci.org/boxuk/versions) [![Dependencies Status](http://clj-deps.herokuapp.com/github/boxuk/versions/status.png)](http://clj-deps.herokuapp.com/github/boxuk/versions)\n\nVersions is a super-simple library for comparing version numbers.\n\n## Usage\n\nJust pass version strings to the comparison functions.\n\n```clojure\n(use boxuk.versions)\n\n(later-version? \"1.0.0\" \"1.0.1\") ; true\n(later-version? \"2.1.0\" \"1.2.0\") ; false\n\n(earlier-version? \"1.0\" \"0.0.9\" ) ; true\n(earlier-version? \"0.9.0\" \"0.10\" ) ; false\n\n(same-version? \"0.1\" \"0.1.0.0.0.0\" ) ; true\n(same-version? \"2.1\" \"1.2\") ; false\n```\n\nYou can also filter a sequence for the latest or earliest version.\n\n```clojure\n(latest-version [\"1.1\" \"2.3\"]) ; \"2.3\"\n(earliest-version [\"2.4\" \"3.4.2\"]) ; \"2.4\"\n```\n\n## Stable/Unstable\n\nVersions can make a distinction between stable and unstable versions.\nUnstable versions are anything postfixed with for example _alpha_, _RC_, or _SNAPSHOT_.\n\n```clojure\n(stable? \"1.2.3-SNAPSHOT\") ; false\n(unstable? \"1.2.3-alpha2\") ; true\n\n(latest-stable [\"1.2.2\" \"1.2.2-SNAPSHOT\"] ; \"1.2.2\"\n```\n\nThe order of comparison for unstable versions is:\n\n```clojure\n(\u003e \"SNAPSHOT\" \"RC\" \"beta\" \"alpha\")\n```\n\n# Installation\n\nVersions is available from [Clojars](http://clojars.org/boxuk/versions)\n\n## ClojureScript\n\nVersions also supports being used via ClojureScript.\n\n## License\n\nDual licensed under GPLv2 and MIT.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxuk%2Fversions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboxuk%2Fversions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxuk%2Fversions/lists"}