https://github.com/nulldev/nummern
:1234: NodeJS Package for spelling out numbers
https://github.com/nulldev/nummern
nodejs npm nulldev number-to-words numbers numbers-to-text
Last synced: 10 months ago
JSON representation
:1234: NodeJS Package for spelling out numbers
- Host: GitHub
- URL: https://github.com/nulldev/nummern
- Owner: NullDev
- License: apache-2.0
- Created: 2017-12-12T12:47:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-14T09:08:04.000Z (about 3 years ago)
- Last Synced: 2025-03-19T21:27:40.633Z (10 months ago)
- Topics: nodejs, npm, nulldev, number-to-words, numbers, numbers-to-text
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/nummern
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nummern

Package to spell out numbers
## :information_source: About
This NodeJS package allows you to convert numbers to text. It will spell out the whole numbers.
(Nummern is german for 'Numbers')
> **`123`** -> one hundred twenty-three
> **`2.5`** -> two point five one
> **`-40`** -> minus forty
## :postbox: NPM
[](https://www.npmjs.com/package/nummern)
## :wrench: Installation
```Assembly
npm i nummern
```
## :white_check_mark: Features
| Language | Included |
| :---: | :---: |
| English | :heavy_check_mark: |
| German | :heavy_check_mark: |
| Bosnian (experimental) | :heavy_check_mark: |
- Error handling
- Multiple Languages
- Point numbers
- Negative numbers
- zero dependencies
## :bulb: Usage
### Convert:
```javascript
nummern(, );
```
Returns the text as string
If no language is specified, english is used.
**Example:**
```Javascript
var nr = require("nummern");
console.log(nr(100));
// => "one hundred"
console.log(nr(1, "german"));
// => "eins"
console.log(nr(201.045, "english"));
// => "two hundred one point zero four five"
console.log(nr(12, "bosnian"));
// => "dvanaest"
```
## :copyright: Copyright
`Copyright (c) NullDev`