npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

number-to-bangla

v1.0.7

Published

This package convert English numbers & date to Bangla number, currency, word and date.

Downloads

6

Readme

Convert Number To Bangla Number, Word and Date

Installation

number-to-bangla has been designed for converting English Numbers and Date to Bangla Number and Date

npm install number-to-bangla

or

npm i number-to-bangla

Documentation

After Installation Import the Package

Node JS

const bn = require("number-to-bangla");

React JS

import bn from "number-to-bangla";

Examples For Number & Currency

Check notes below of Examples

const bn = require("number-to-bangla");

// 1. Simple Convert
bn.engToNumber(123456);
//Output: ১২৩৪৫৬

// 2. To Word Convert
bn.engToWord(9999);
//Output: নয় হাজার নয়শত নিরানব্বই

bn.engToWord(123456.9999);
//Output: এক লক্ষ তেইশ হাজার চারশত ছাপ্পান্ন দশমিক নয় নয় নয় নয়

bn.engToWord(123456, true);
// Output: এক লক্ষ তেইশ হাজার চারশত ছাপ্পান্ন টাকা

bn.engToWord(55.56, true);
//Output:  পঞ্চান্ন টাকা এবং ছাপ্পান্ন পয়সা

Note For Numbers and Currency

  1. Plain English Number Eg. 123456
  2. Plain English String Type Number Eg. "123456"
  3. Decimal Number 56.523
  4. Support 9007199254740991<= number =>9007199254740991 Range

Examples For Date

You can Pass valid date and string and will get expected resuklt.

const bn = require("number-to-bangla");

bn.engToDate("12/08/2024");
//১২/০৮/২০২৪

bn.engToDate("12/08/2024");
//১২/০৮/২০২৪

bn.engToDate("12 Aug 2025");
//১২ আগস্ট ২০২৫

bn.engToDate("Sat 12 Aug 2025");
//শনি ১২ আগস্ট ২০২৫

bn.engToDate("Saturday 12 Aug 2025");
//শনিবার ১২ আগস্ট ২০২৫

bn.engToDate("Friday 12 August 2025 12:06:00 pm");
//শুক্রবার ১২ আগস্ট ২০২৫ ১২:০৬:০০ pm

bn.engToDate("Friday 12 August 2025 at 12:06:00 pm");
//Invalid Date or Time (Because of at)

Note For Date

  1. Do not suppor RFC 3339 date formats eg. "2024-02-12T12:34:56Z"
  2. Support ISO 8601: Date formats as well as Sort and long date formats.