another-number-to-words

1.0.0 • Public • Published

number-to-text

Convert numbers to text, like "five hundred seventy-two".

Usage

const nToText = require('number-to-text')
// nToText(n, useAnd=false)
nToText(43) // => forty-three
nToText("1234567890") // => one billion, two hundred thirty-four million, five hundred sixty-seven thousand, eight hundred ninety
nToText(123456) //       => one hundred twenty-three thousand, four hundred fifty-six
nToText(123456, true) // => one hundred and twenty-three thousand, four hundred and fifty-six

Readme

Keywords

none

Package Sidebar

Install

npm i another-number-to-words

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

3.14 kB

Total Files

3

Last publish

Collaborators

  • nicolauszm