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

Dependents (0)

Package Sidebar

Install

npm i number-to-bengali

Weekly Downloads

32

Version

1.1.0

License

MIT

Unpacked Size

2.13 kB

Total Files

4

Last publish

Collaborators

  • sh4hids