number-to-bengali

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i number-to-bengali

Weekly Downloads

6

Version

1.1.0

License

MIT

Unpacked Size

2.13 kB

Total Files

4

Last publish

Collaborators

  • sh4hids