Skip to content

sh4hids/number-to-bengali

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number to Bengali

Convert any number (English) to Bengali with this tiny node module.

Install

npm install -S number-to-bengali
yarn add number-to-bengali

Use

const toBengaliNum = require('number-to-bengali');

toBengaliNum(123) // returns '১২৩'
toBengaliNum(1.23) // returns '১.২৩'
toBengaliNum('12.3') // returns '১২.৩'
toBengaliNum('-12.3') // returns '-১২.৩'
toBengaliNum('a.123') // returns 'Invalid input type'

Test

To test this module you have to have jest installed globally.

npm test

About

A small node module to convert number to Bengali format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published