# @tsdotnet/compare

> Utility for common comparison functions including sorting and type reflection.

Latest version **1.7.5** (published 2026-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tsdotnet/compare
pnpm add @tsdotnet/compare
yarn add @tsdotnet/compare
bun add @tsdotnet/compare
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.7.5 |
| Published | 2026-03-16 |
| First published | 2020-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 3 |
| Unpacked size | 52.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | electricessence |
| Maintainers | electricessence |
| Keywords | equal, lessthan, less than, greaterthan, greater than, compare, comparison, equality, orderby, order by, sorting, type checking |

## Links

- npm: https://www.npmjs.com/package/@tsdotnet/compare
- Repository: https://github.com/tsdotnet/compare
- Homepage: https://github.com/tsdotnet/compare#readme
- Issues: https://github.com/tsdotnet/compare/issues
- npm.io page: https://npm.io/package/@tsdotnet/compare

## Dependencies (3)

- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [@tsdotnet/type](https://npm.io/package/@tsdotnet/type.md) ^1.2.7
- [@tsdotnet/common-interfaces](https://npm.io/package/@tsdotnet/common-interfaces.md) ^1.0.6

## Recent versions

- 1.7.5 (latest) — 2026-03-16
- 1.7.4 — 2025-08-25
- 1.7.3 — 2025-08-25
- 1.7.2 — 2025-08-25
- 1.7.1 — 2025-08-24
- 1.7.0 — 2025-08-19
- 1.6.1 — 2025-08-18
- 1.6.0 — 2025-08-18
- 1.5.4 — 2025-08-18
- 1.5.3 — 2025-08-18
- 1.5.2 — 2025-08-16
- 1.5.1 — 2025-08-16
- 1.5.0 — 2025-08-16
- 1.4.0 — 2025-08-16
- 1.3.22 — 2022-12-18
- … 42 more at https://npm.io/package/@tsdotnet/compare/versions

## README

# ![alt text](https://avatars1.githubusercontent.com/u/64487547?s=30 "tsdotnet") tsdotnet / compare

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/tsdotnet/compare/blob/master/LICENSE)
[![npm version](https://img.shields.io/npm/v/@tsdotnet/compare.svg?style=flat-square)](https://www.npmjs.com/package/@tsdotnet/compare)

Utility for common comparison functions including sorting and type checking.

## Docs

[tsdotnet.github.io/compare](https://tsdotnet.github.io/compare/)

---
_Source: https://npm.io/package/@tsdotnet/compare · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
