# numbered

> Stringify any number into words, and parse number strings back to a number

Latest version **1.1.0** (published 2017-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install numbered
pnpm add numbered
yarn add numbered
bun add numbered
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-09-18 |
| First published | 2013-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Author | Blake Embrey |
| Maintainers | blakeembrey |
| Keywords | numbers, words, stringify, parse |

## Links

- npm: https://www.npmjs.com/package/numbered
- Repository: https://github.com/blakeembrey/node-numbered
- Homepage: https://github.com/blakeembrey/node-numbered#readme
- Issues: https://github.com/blakeembrey/node-numbered/issues
- npm.io page: https://npm.io/package/numbered

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-09-18
- 1.0.0 — 2014-08-17
- 0.0.4 — 2013-07-06

## README

# Numbered

[![NPM version](https://img.shields.io/npm/v/numbered.svg?style=flat)](https://npmjs.org/package/numbered)
[![Build status](https://img.shields.io/travis/blakeembrey/node-numbered.svg?style=flat)](https://travis-ci.org/blakeembrey/node-numbered)
[![Test coverage](https://img.shields.io/coveralls/blakeembrey/node-numbered.svg?style=flat)](https://coveralls.io/r/blakeembrey/node-numbered?branch=master)
[![Greenkeeper badge](https://badges.greenkeeper.io/blakeembrey/node-numbered.svg)](https://greenkeeper.io/)

> Stringify any number into words, and parse number strings back to a number.

## Installation

```
npm install numbered --save
```

## API

```javascript
var numbered = require('numbered');
```

* [`numbered(number | string)`](#function)
* [`numbered.parse(string)`](#parse)
* [`numbered.stringify(number)`](#stringify)

### Function

**Numbered** exposes a single function that accepts either a string or a number. The string will delegate to the `parse` method and a number will delegate to the `stringify` method.

### Parse

Parses a string into a number as best as possible.

```js
numbered.parse('ninety nine');
// 99

numbered.parse('point two five nine');
// 0.259
```

### Stringify

Stringifies a number to the words.

```js
numbered.stringify(99);
// "ninety nine"

numbered.stringify(0.259);
// "zero point two five nine"
```

## License

MIT

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