inr-number-formatter

1.0.5 • Public • Published

inr-number-formatter

A simple utility to format numbers with Indian number like k, L, and Cr.

Installation

You can install the package using npm:

npm install indian-number-format

Example

const  formatPrice  = require('inr-number-formatter');

// Format numbers with Indian numbers
console.log(formatPrice(123456789)); // Output: "12.35 Cr"
console.log(formatPrice(1234567));   // Output: "12.35 L"
console.log(formatPrice(12345));     // Output: "12.35k"
console.log(formatPrice(123));       // Output: "123"

Contact:

-For any questions or feedback, please contact ankushjagga97@gmail.com.

Package Sidebar

Install

npm i inr-number-formatter

Weekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

13.7 kB

Total Files

4

Last publish

Collaborators

  • ankushjagga