{"id":28469235,"url":"https://github.com/winterbe/compary","last_synced_at":"2025-07-01T14:30:35.995Z","repository":{"id":57204575,"uuid":"103238217","full_name":"winterbe/compary","owner":"winterbe","description":"A library for composing complex compare-functions in JavaScript","archived":false,"fork":false,"pushed_at":"2017-09-12T08:55:23.000Z","size":158,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T08:42:34.515Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://winterbe.github.io/compary/","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/winterbe.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":"2017-09-12T07:36:51.000Z","updated_at":"2019-08-07T05:05:11.000Z","dependencies_parsed_at":"2022-09-18T00:41:54.372Z","dependency_job_id":null,"html_url":"https://github.com/winterbe/compary","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/winterbe/compary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterbe%2Fcompary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterbe%2Fcompary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterbe%2Fcompary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterbe%2Fcompary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winterbe","download_url":"https://codeload.github.com/winterbe/compary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterbe%2Fcompary/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262980836,"owners_count":23394419,"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":[],"created_at":"2025-06-07T08:30:57.398Z","updated_at":"2025-07-01T14:30:35.980Z","avatar_url":"https://github.com/winterbe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compary [![Travic CI](https://travis-ci.org/winterbe/compary.svg?branch=master)](https://travis-ci.org/winterbe/compary)\n\n\u003e A library for composing complex compare-functions.\n\n```js\npersons.sort(\n    compareBy(p =\u003e p.lastName)\n        .thenBy(p =\u003e p.firstName)\n);\n```\n\n---\n\n\u003cp align=\"center\"\u003e\n\u003cstrong\u003e★★★ Like this project? \u003ca href=\"https://github.com/winterbe/compary/stargazers\"\u003eLeave a star\u003c/a\u003e and \u003ca href=\"https://twitter.com/winterbe_\"\u003efeedback on Twitter\u003c/a\u003e! Thanks. ★★★\u003c/strong\u003e\n\u003c/p\u003e\n\n---\n\n## Getting started\n\nDownload the [latest release](https://github.com/winterbe/compary/releases) from GitHub or install Compary from [NPM](https://www.npmjs.com/package/compary):\n\n```bash\nnpm install --save compary\n```\n\nAlternatively use Compary from [CDN](https://unpkg.com/compary/) by adding this to your HTML:\n\n```html\n\u003cscript src=\"https://unpkg.com/compary\"\u003e\u003c/script\u003e\n```\n\n## License\n\nMIT © [Benjamin Winterberg](https://twitter.com/winterbe_)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinterbe%2Fcompary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinterbe%2Fcompary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinterbe%2Fcompary/lists"}