nummify is a lightweight and intuitive library designed for converting numbers into their written word representation in multiple languages. With its straightforward API, you can easily integrate it into any project to enhance number handling and presentation.
You can install nummify
using any of the following package managers:
npm install nummify
bun add nummify
Getting started with nummify
is simple. Here’s how to use the library:
import numReader from 'nummify';
console.log(numReader.readNumber('1234.5', 'en')); // Output: "one thousand two hundred thirty-four point five"
console.log(numReader.readNumber('1234.5', 'ar')); // Output: "الف ومئتان وأربعة وثلاثون فاصلة خمسة"
-
ar
: Arabic -
en
: English
- Simplicity: Easy to use with minimal setup required.
- Multi-language Support: Converts numbers to words in both Arabic and English.
- Versatile Handling: Supports various number formats, including decimals and negative numbers.
- Lightweight: Designed to be unobtrusive and efficient, making it ideal for any project.
Contributions are encouraged! Please feel free to submit a pull request or open an issue to improve the library.
This project is licensed under the ISC License. See the https://github.com/HakimiDev/nummify#LICENSE.md file for details.