New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nummify

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nummify

A lightweight library for converting numbers into their written word representation in multiple languages.

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
0
Created
Source

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

Keywords

number

FAQs

Package last updated on 13 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts