DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

Cover image for bnnum - npm package
King Rayhan
King Rayhan

Posted on • Updated on

bnnum - npm package

Translate number to Bengali

Installation

npm install bnnum

// or

yarn add bnnum

Example

import bnNum from 'bnnum'

console.log(bnNum(4587))
// => เงชเงซเงฎเงญ

console.log(bnNum(4587, true))
// => เงช,เงซเงฎเงญ

Parameters

Name Data Type Description
num int Number to convert in Bengali
komma boolean (Default:false) Komma notation on number

Returns

@return {string} Translated bangla number

Known Issue

This package will not works in backend

GitHub logo kingRayhan / bnnum

Number conversion package from english to Bengali

Translate number to Bengali

Installation

npm install bnnum

Example

import bnNum from 'bnnum'

console.log(bnNum(4587))
// => เงชเงซเงฎเงญ

console.log(bnNum(4587, true))
// => เงช,เงซเงฎเงญ

Parameters

Name Data Type Description
num int Number to convert in Bengali
komma boolean (Default:false) Komma notation on number

Returns

@return {string} Translated bangla number

Known Issue

This package will not works in backend

Issue fixer credits

Solved issue #1 by jobayerarman

http://bit.ly/create-ghost-theme

Top comments (0)

๐Ÿค” Did you know?

ย 
DEV has a variety of tags to help you find the content you like. Find and follow your favorite tags.