2.1.3 • Published 2 years ago

@salvadroid/numword v2.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Numword

Just translates numbers into words to know how to read them

Install

npm i --save @salvadroid/numword

Usage

const toWords = require('@salvadroid/numword')

console.log(toWords(1994)) //=> one thousand nine hundred ninety-four

Examples

128

one hundred twenty-eight

-128

minus one hundred twenty-eight

29.01

twenty-nine and one hundredths

The maximum and minimum input is given by 2^53 and -2^53

source