# humanize-ordinal

> Tiny ordinal humanization utilizing Intl.PluralRules

Latest version **1.0.0** (published 2018-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install humanize-ordinal
pnpm add humanize-ordinal
yarn add humanize-ordinal
bun add humanize-ordinal
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-10-14 |
| First published | 2018-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Aleksey Shvayka |
| Maintainers | shvaikalesh |
| Keywords | humanize, ordinal, number, suffix, intl, plural-rules |

## Links

- npm: https://www.npmjs.com/package/humanize-ordinal
- Repository: https://github.com/shvaikalesh/humanize-ordinal
- Homepage: https://github.com/shvaikalesh/humanize-ordinal#readme
- Issues: https://github.com/shvaikalesh/humanize-ordinal/issues
- npm.io page: https://npm.io/package/humanize-ordinal

## 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.0 (latest) — 2018-10-14

## README

# humanize-ordinal

Tiny ordinal humanization utilizing `Intl.PluralRules`.

* [ECMA-402: `Intl.PluralRules` spec](https://tc39.github.io/ecma402/#pluralrules-objects)
* [Can I use `Intl.PluralRules`?](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules#Browser_compatibility)
* [`Intl.PluralRules` shim](https://github.com/eemeli/intl-pluralrules)

## Up and running

Get the package from [npm](https://www.npmjs.com/package/humanize-ordinal):

```sh
npm install humanize-ordinal --save
```

Use `default` export:

```js
import humanizeOrdinal from "humanize-ordinal"

humanizeOrdinal(1)  // => "1st"
humanizeOrdinal(12) // => "12th"
humanizeOrdinal(23) // => "23rd"
```

Currently, only English is supported.

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