GitXplorerGitXplorer
t

get-nepali-number

public
5 stars
2 forks
0 issues

Commits

List of commits on branch master.
Verified
0dc35f060afd431063980449f3bb51b5551aea5e

Merge pull request #20 from techgaun/dependabot/npm_and_yarn/braces-3.0.3

ttechgaun committed 7 months ago
Verified
ee93d64308a65d939a02cffc5c343501734eebdd

Bump braces from 3.0.2 to 3.0.3

ddependabot[bot] committed 7 months ago
Verified
72a56956d61755231f3484b846f52f9b2cbadbac

Merge pull request #19 from techgaun/dependabot/npm_and_yarn/word-wrap-1.2.4

ttechgaun committed a year ago
Verified
62c878905b3a97d83a31a5ad12e987732b49b8b9

Bump word-wrap from 1.2.3 to 1.2.4

ddependabot[bot] committed 2 years ago
Verified
a965ec3483dd332d09cf1a4b1e1f33b24f4d8ea7

Merge pull request #16 from techgaun/dependabot/npm_and_yarn/minimatch-and-mocha-3.1.2

ttechgaun committed 2 years ago
Verified
c368bf6f1d4adf391f51676d082a0c1c9330f7a7

Bump minimatch and mocha

ddependabot[bot] committed 2 years ago

README

The README file for this repository.

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