Skip to content

techgaun/get-nepali-number

Repository files navigation

get-nepali-number Build Status

Convert any english (technically hindu-arabic) numeral to Nepali number

Install

# Using npm
$ npm install --save get-nepali-number

# Using yarn
$ yarn add get-nepali-number

Usage

var getNepaliNumber = require('get-nepali-number');

getNepaliNumber(100);
//=> '१००'

getNepaliNumber(2000);
//=> '२,०००'

getNepaliNumber(200.05);
//=> '२००.०५'

getNepaliNumber(2000.50);
//=> '२,०००.५'

getNepaliNumber('2,00,000.50');
//=> '२,००,०००.५'

getNepaliNumber('1,000,365.50');
//=> '१०,००,३६५.५'

API

getNepaliNumber(num)

num

Type: number or string

provide a number to convert to Nepali numeral

License

MIT © techgaun

Releases

No releases published

Sponsor this project

 

Packages

No packages published