@mustafamilyas/ntw
v1.0.1
Published
a utility function to transform number into their words
Downloads
48
Maintainers
Readme
A tiny utility function for converting numbers to their number words. Currently only support numbers to English words.
Installation
npm i @mustafamilyas/ntw
#or
yarn add @mustafamilyas/ntw
How To Use It
This library only converts when the provided argument is a number
import { ntw } from '@mustafamilyas/ntw'
ntw('some wrong arguments') // => ""
ntw(12353) // => "twelve thousand three hundred fifty three"
ntw(100000) // => "one hundred thousand"
ntw(672343602049) // => "six hundred seventy two billion three hundred forty three million six hundred two thousand forty nine"
Feedback
No standard rule, you can ask me through this repository or if you prefer email then please send it to [email protected]