# @aureooms/js-compare

> Comparison functions for JavaScript

Latest version **2.0.1** (published 2021-04-06) · AGPL-3.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @aureooms/js-compare
pnpm add @aureooms/js-compare
yarn add @aureooms/js-compare
bun add @aureooms/js-compare
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2021-04-06 |
| First published | 2017-02-16 |
| Weekly downloads | 0 |
| License | AGPL-3.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 545.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | aureooms |
| Maintainers | aureooms |
| Keywords | bricks, compare, ender, javascript, js, order, sort |

## Links

- npm: https://www.npmjs.com/package/@aureooms/js-compare
- Repository: https://github.com/aureooms/js-compare
- Homepage: https://aureooms.github.io/js-compare
- Issues: https://github.com/aureooms/js-compare/issues
- npm.io page: https://npm.io/package/@aureooms/js-compare

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.0.1 (latest) — 2021-04-06
- 2.0.0 — 2021-03-19
- 1.4.8 — 2020-08-16
- 1.4.7 — 2020-08-11
- 1.4.6 — 2020-08-11
- 1.4.5 — 2017-02-16

## README

:balance_scale: [@aureooms/js-compare](https://aureooms.github.io/js-compare)
==

Comparison functions for JavaScript.
See [docs](https://aureooms.github.io/js-compare/index.html).

```js
import { reverse, lexicographical, increasing } from '@aureooms/js-compare' ;
let compare = reverse( lexicographical( increasing ) ) ;
compare( [ 1 , 1 ] , [ 1 , 2 ] )  >  0 ; // true
```

[![License](https://img.shields.io/github/license/aureooms/js-compare.svg)](https://raw.githubusercontent.com/aureooms/js-compare/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@aureooms/js-compare.svg)](https://www.npmjs.org/package/@aureooms/js-compare)
[![Tests](https://img.shields.io/github/workflow/status/aureooms/js-compare/ci:test?event=push&label=tests)](https://github.com/aureooms/js-compare/actions/workflows/ci:test.yml?query=branch:main)
[![Dependencies](https://img.shields.io/david/aureooms/js-compare.svg)](https://david-dm.org/aureooms/js-compare)
[![Dev dependencies](https://img.shields.io/david/dev/aureooms/js-compare.svg)](https://david-dm.org/aureooms/js-compare?type=dev)
[![GitHub issues](https://img.shields.io/github/issues/aureooms/js-compare.svg)](https://github.com/aureooms/js-compare/issues)
[![Downloads](https://img.shields.io/npm/dm/@aureooms/js-compare.svg)](https://www.npmjs.org/package/@aureooms/js-compare)

[![Code issues](https://img.shields.io/codeclimate/issues/aureooms/js-compare.svg)](https://codeclimate.com/github/aureooms/js-compare/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/aureooms/js-compare.svg)](https://codeclimate.com/github/aureooms/js-compare/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/aureooms/js-compare/main.svg)](https://codecov.io/gh/aureooms/js-compare)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/aureooms/js-compare.svg)](https://codeclimate.com/github/aureooms/js-compare/trends/technical_debt)
[![Documentation](https://aureooms.github.io/js-compare/badge.svg)](https://aureooms.github.io/js-compare/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@aureooms/js-compare)](https://bundlephobia.com/result?p=@aureooms/js-compare)

## :scroll: References

  - https://en.wikipedia.org/wiki/Lexicographical_order

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