nummify
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

nummify

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.

Installation

You can install nummify using any of the following package managers:

npm

npm install nummify

bun

bun add nummify

Usage

Getting started with nummify is simple. Here’s how to use the library:

ES6 Import

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: "الف ومئتان وأربعة وثلاثون فاصلة خمسة"

Supported Languages

  • ar: Arabic
  • en: English

Features

  • 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.

Contributing

Contributions are encouraged! Please feel free to submit a pull request or open an issue to improve the library.

License

This project is licensed under the ISC License. See the https://github.com/HakimiDev/nummify#LICENSE.md file for details.

Author

Made By Software Engineer: Shadi AL-Hakimi

Homepage

GitHub Repository

Package Sidebar

Install

npm i nummify

Weekly Downloads

0

Version

2.0.1

License

ISC

Unpacked Size

13.2 kB

Total Files

5

Last publish

Collaborators

  • hakimishadi