# spoken-numbers

> Convert numbers to spoken word formats (e.g. 1375 becomes thirteen seventy five). Various formatting options are provided to support simple digits, double digits, leading zeros, alphanumeric values, and variations on the word for 'zero' such a 'O'

Latest version **0.0.4** (published 2015-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install spoken-numbers
pnpm add spoken-numbers
yarn add spoken-numbers
bun add spoken-numbers
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2015-09-17 |
| First published | 2015-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Scott Beaudreau |
| Maintainers | scottbea |
| Keywords | numbers, spoken, words |

## Links

- npm: https://www.npmjs.com/package/spoken-numbers
- Repository: https://github.com/scottbea/spoken-numbers
- Homepage: https://github.com/scottbea/spoken-numbers#readme
- Issues: https://github.com/scottbea/spoken-numbers/issues
- npm.io page: https://npm.io/package/spoken-numbers

## 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

- 0.0.4 (latest) — 2015-09-17
- 0.0.3 — 2015-09-02
- 0.0.0 — 2015-08-28

## README

# spoken-numbers
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]
- - -
> Convert numbers to spoken word formats (e.g. 1375 becomes thirteen seventy five). Various formatting options are provided to support simple digits, c


## Install with npm

```bash
$ npm install --save spoken-numbers
```

## Usage

```js
var spokenNumbers = require('spoken-numbers');

var words1 = spokenNumbers.toSpoken(1724, 'dd'); // => 'seventeen twenty four'
var words2 = spokenNumbers.toSpoken(1701, 'dd:o'); // => 'seventeen o one'
var words3 = spokenNumbers.toSpoken('AA1901', 'dd:o'); // => 'A A nineteen o one'
var words4 = spokenNumbers.toSpoken('AA1901', 'd'); // => 'A A one nine zero one'
```

## Formats
- `d` - Formats all numbers as individual digits. Example: `14,302,033` becomes `one four three zero two zero three three`
- `dd` - Formats all numbers as individual digits. Example: `14,30,20,33` becomes `fourteen thirty twenty thirty three`
- `w` - Formats all numbers in a verbose form, including named units. Example: `14,302,033` becomes `fourteen million three hundred and two thousand thirty three`
- `d:o` - Formats all numbers as individual digits but replaces `zero` with `0`. Example: `14,302,033` becomes `one four three o two o three three`

## License
This code is licensed under the MIT license for [Scott Beaudreau](). For more
information, please refer to the [LICENSE](/LICENSE) file.


[npm-image]: https://badge.fury.io/js/spoken-numbers.svg
[npm-url]: https://npmjs.org/package/spoken-numbers
[travis-image]: https://travis-ci.org/scottbea/spoken-numbers.svg?branch=master
[travis-url]: https://travis-ci.org/scottbea/spoken-numbers
[daviddm-image]: https://david-dm.org/scottbea/spoken-numbers.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/scottbea/spoken-numbers
[coveralls-image]: https://coveralls.io/repos/scottbea/spoken-numbers/badge.svg?branch=master&service=github
[coveralls-url]: https://coveralls.io/r/scottbea/spoken-numbers?branch=master

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