number-words

1.1.1 • Public • Published

number-words

CI Status npm version

Convert a number into words

Install

$ npm install --save number-words

Usage

const numberWords = require('number-words');
 
numberWords.convert(42);
//=> 'fourty two'
 
numberWords.convert(101);
//=> 'one hundred and one'
 
numberWords.convert(31.41);
//=> 'thirty one'

API

numberWords.convert(number)

number

Type number

Number to convert into words.

License

MIT © André Ruffert

Readme

Keywords

none

Package Sidebar

Install

npm i number-words

Weekly Downloads

315

Version

1.1.1

License

MIT

Unpacked Size

14.7 kB

Total Files

13

Last publish

Collaborators

  • andreruffert