1.1.0 • Published 6 years ago

number-to-bengali v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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