numbered
Stringify any number into words, and parse number strings back to a number
Last updated 9 years ago by blakeembrey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install numbered 
SYNC missed versions from official npm registry.

Numbered

NPM version Build status Test coverage Greenkeeper badge

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

Installation

npm install numbered --save

API

var numbered = require('numbered');

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.

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

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

Stringify

Stringifies a number to the words.

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

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

License

MIT

Current Tags

  • 1.1.0                                ...           latest (9 years ago)

3 Versions

  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           12 years ago
  • 0.0.4                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |