Nummern
Package to spell out numbers
ℹ️ 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
📮 NPM
🔧 Installation
npm i nummern
✅ Features
Language | Included |
---|---|
English | ✔️ |
German | ✔️ |
Bosnian (experimental) | ✔️ |
- Error handling
- Multiple Languages
- Point numbers
- Negative numbers
- zero dependencies
💡 Usage
Convert:
;
Returns the text as string If no language is specified, english is used.
Example:
var nr = require("nummern"); console.log(nr(100));// => "one hundred" console.log(nr(1, "german"));// => "eins" console.log(nr(201.045, "english"));// => "one hundred twenty-two point zero four five" console.log(nr(12, "bosnian"));// => "dvanaest"
©️ Copyright
Copyright (c) 2017 NullDev