1.0.4 • Published 2 years ago

@i.shubham.kr/number-to-word v1.0.4

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

Number-to-Word Converter npm.io

Converts a number to its word equivalent.

Installation

npm i @i.shubham.kr/number-to-word

Usage

const numberToWord = require('@i.shubham.kr/number-to-word')

console.log(numberToWord(1234567890, 'USD'))
// Output: One Billion Two Hundred Thirty Four Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety

Options

OptionTypeDefaultDescription
langstring'USD'Language of the output. Currently supports 'United States'.
langstring'INR'Language of the output. Currently supports 'Indian'.
langstring'CN'Language of the output. Currently supports 'Chinees'.
langstring''Invalid language will return the number as it is.

GitHub npm.io

Shubham Kumar

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago