nummern

1.1.0 • Public • Published

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:

nummern(<number>, <optional: language>);

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

Package Sidebar

Install

npm i nummern

Weekly Downloads

1

Version

1.1.0

License

Apache-2.0

Last publish

Collaborators

  • null_dev