# text-number

> This tiny library contains classes which can be used to convert numbers into English/Farsi/Persian and Arabic languages. Other languages can be added easily by sub-classing TextNumber class.

Latest version **1.0.3** (published 2020-11-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install text-number
pnpm add text-number
yarn add text-number
bun add text-number
```

## 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.3 |
| Published | 2020-11-24 |
| First published | 2020-08-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ali Bahrami |
| Maintainers | pro_design633 |
| Keywords | javascript, number, text |

## Links

- npm: https://www.npmjs.com/package/text-number
- Repository: https://github.com/alibahrami633/text-number
- Homepage: https://github.com/alibahrami633/text-number#readme
- Issues: https://github.com/alibahrami633/text-number/issues
- npm.io page: https://npm.io/package/text-number

## 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.3 (latest) — 2020-11-24
- 1.0.2 — 2020-11-23
- 1.0.1 — 2020-11-23
- 1.0.0 — 2020-08-11

## README

# text-number
This tiny library contains classes which can be used to convert numbers into English/Farsi/Persian and Arabic languages. Other languages can be added easily by sub-classing TextNumber class.

## Installation
```
npm i text-number
```

## example
```javascript
import { TextNumber, TextNumberFa, TextNumberAr } from 'text-number'

const englishTextNumber = new TextNumber();
const farsiTextNumber = new TextNumberFa();
const arabicTextNumber = new TextNumberAr();

const num = 324;

console.log(englishTextNumber.text(num));	// three hundred and twenty four
console.log(farsiTextNumber.text(num));		// سیصد و بیست و چهار
console.log(arabicTextNumber.text(num));	// ثلاث مئه و اربعه عشرون

```

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