Bangla Money Format

A comprehensive Bengali/Bangla money and number formatting library with accurate compound numbers, traditional scales, English conversion, and modern short forms. Perfect for financial applications, e-commerce platforms, banking systems, and any application requiring Bengali number formatting.

v1.2.4 Latest Version
0 Dependencies
32+ Keywords

Installation

npm install bangla-money-format
yarn add bangla-money-format
pnpm add bangla-money-format

Features

Accurate Bengali Number Formatting

Convert numbers to Bengali text with proper compound number grammar

Money Formatting

Format currency with Bengali digits and text

Traditional Scale Support

Enhanced traditional Bengali number scales with proper terms

English Conversion

Convert Bengali text to English equivalents

Short Forms

Modern K, M, B, T notation support

Framework Ready

ES6 & CommonJS support for React, Vue, Angular, Node.js

Quick Start

Using CommonJS (require)

const { toText, toBanglaMoney } = require("bangla-money-format"); // Basic usage console.log(toText(1000000)); // Output: দশ লাখ টাকা console.log(toBanglaMoney(1000000)); // Output: ৳১০,০০,০০০

Using ES6 Modules (import)

import { toText, toBanglaMoney } from "bangla-money-format"; // Basic usage console.log(toText(1000000)); // Output: দশ লাখ টাকা console.log(toBanglaMoney(1000000)); // Output: ৳১০,০০,০০০

Examples

Bengali Compound Numbers

console.log(toText(75)); console.log(toText(555)); console.log(toText(1500));
পঁচাত্তর টাকা পাঁচ শত পঞ্চান্ন টাকা এক হাজার পাঁচ শত টাকা

Currency Formatting

console.log(toBanglaMoney(50000)); console.log(toBanglaMoney(1500000)); console.log(toBanglaMoney(10000000));
৳৫০,০০০ ৳১৫,০০,০০০ ৳১,০০,০০,০০০

English Conversion

console.log(toText(1000000, { textInEnglish: true })); console.log(toText(75, { textInEnglish: true })); console.log(toText(1500.75, { textInEnglish: true }));
ten lakh taka seventy five taka one thousand five hundred taka seventy five paisa

Short Form Notation

console.log(toText(1500, { useShortForm: true })); console.log(toText(1500000, { useShortForm: true })); console.log(toText(1500000000, { useShortForm: true }));
1.5K টাকা 1.5M টাকা 1.5B টাকা

Traditional Scale

console.log(toText(1000000000, { useTraditionalScale: true })); console.log(toText(1000000000000, { useTraditionalScale: true }));
একশত কোটি টাকা এক লক্ষ কোটি টাকা

Fractions

console.log(toText(1500.75)); console.log(toText(1500.75, { textInEnglish: true }));
এক হাজার পাঁচ শত টাকা সত্তর পাঁচ পয়সা one thousand five hundred taka seventy five paisa
Try Interactive Demo

API Reference

toText(number, options)

Converts a number to Bengali text representation with money formatting.

// Basic usage toText(1000000) // "দশ লাখ টাকা" // With options toText(75, { textInEnglish: true }) // "seventy five taka" toText(1500000, { useShortForm: true }) // "1.5M টাকা"

toBanglaMoney(number, options)

Formats a number as Bengali currency without text conversion.

// Basic usage toBanglaMoney(1000000) // "৳১০,০০,০০০" // With options toBanglaMoney(5000, { showCurrency: false }) // "৫,০০০" toBanglaMoney(1000, { currency: "BDT" }) // "BDT১,০০০"

Use Cases

Banking Applications

Account statements, transaction records

E-commerce Platforms

Product pricing, checkout systems

Invoice Generators

Professional invoices, receipts

Accounting Software

Financial reports, calculations

Government Systems

Official documents, forms

Mobile Applications

Bengali financial apps

Compatibility

Node.js

12.0.0+ Full support

Browser

All modern browsers

React

Full framework support

Vue.js

Full framework support

Angular

Full framework support

TypeScript

Type definitions included