https://github.com/andreruffert/number-words
π― π¬ Convert a number into words
https://github.com/andreruffert/number-words
converter javascript number-to-words
Last synced: 3 months ago
JSON representation
π― π¬ Convert a number into words
- Host: GitHub
- URL: https://github.com/andreruffert/number-words
- Owner: andreruffert
- License: mit
- Created: 2015-11-18T14:41:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-11T14:57:25.000Z (over 2 years ago)
- Last Synced: 2024-10-24T02:11:40.164Z (9 months ago)
- Topics: converter, javascript, number-to-words
- Language: JavaScript
- Homepage: https://npm.im/number-words
- Size: 456 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# number-words
[](https://github.com/andreruffert/number-words/actions?query=workflow%3ACI)
[](https://www.npmjs.com/package/number-words)
[](https://www.npmjs.com/package/number-words)> Convert a number into words
## Install
```
$ npm install --save number-words
```## Usage
```js
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](http://andreruffert.com)