# @total-order/primitive

> Comparison of primitive values for JavaScript

Latest version **1.0.1** (published 2021-07-15) · AGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @total-order/primitive
pnpm add @total-order/primitive
yarn add @total-order/primitive
bun add @total-order/primitive
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-07-15 |
| First published | 2021-04-28 |
| Weekly downloads | 0 |
| License | AGPL-3.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 477.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 1 |
| Author | make-github-pseudonymous-again |
| Maintainers | aureooms |
| Keywords | bigint, compare, number, order, primitive, string, total, type |

## Links

- npm: https://www.npmjs.com/package/@total-order/primitive
- Repository: https://github.com/total-order/primitive
- Homepage: https://total-order.github.io/primitive
- Issues: https://github.com/total-order/primitive/issues
- npm.io page: https://npm.io/package/@total-order/primitive

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-07-15
- 1.0.0 — 2021-06-01
- 0.0.2 — 2021-04-29
- 0.0.1 — 2021-04-28
- 0.0.0 — 2021-04-28

## README

:orange: [@total-order/primitive](https://total-order.github.io/primitive)
==

Comparison of primitive values for JavaScript.
See [docs](https://total-order.github.io/primitive/index.html).

```js
import {range} from '@iterable-iterator/range';
import {decreasing} from '@total-order/primitive';
Array.from(range(12)).sort(decreasing); // 11 10 9 8 7 ...
```

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

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

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