1.0.2 • Published 7 months ago

bdt-currency v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

Currency Formatter (BDT-specific)

This package provides a simple utility to format numbers into Bangladeshi Taka (BDT) currency format. It handles large numbers, converting them into the format commonly used in Bangladesh, including crore and lakh units.

Installation

You can install the package via npm:

npm install bdt-currency

Usage

To use the package, you can import it into your JavaScript or TypeScript file:

const formatBDT = require('bdt-currency');

console.log(formatBDT(1000));           // Output: "৳ 1,000"
console.log(formatBDT(1000000));        // Output: "৳ 10 Lakh"
console.log(formatBDT(2500000000));     // Output: "৳ 250 Crore"
console.log(formatBDT(5000000000.75));  // Output: "৳ 500 Crore 75 Lakh"
1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago