numbered
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    126,005
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    126,005
  • 1.0.0
    33
  • 0.0.4
    2

Package Sidebar

Install

npm i numbered

Weekly Downloads

126,040

Version

1.1.0

License

MIT

Last publish

Collaborators

  • blakeembrey