GitXplorerGitXplorer
t

get-nepali-number

public
5 stars
2 forks
0 issues

Commits

List of commits on branch master.
Verified
6632ede9be62e4f9d59c152353683103187fc1c5

Merge pull request #18 from techgaun/dependabot/npm_and_yarn/glob-parent-and-xo-5.1.2

ttechgaun committed 2 years ago
Verified
cf6e3440d5c4797c3e5d32cf7173a67a4a59094d

Bump glob-parent and xo

ddependabot[bot] committed 2 years ago
Verified
2c2614b82f48937330b7f2a3713323f88303f59c

Merge pull request #13 from techgaun/dependabot/npm_and_yarn/json5-and-tsconfig-paths-2.2.3

ttechgaun committed 2 years ago
Verified
d8d8618bdee1e5f3d58fcc1c33d59e673c62f59c

Bump json5 and tsconfig-paths

ddependabot[bot] committed 2 years ago
Verified
a164048ab82ff92b85d790ea14632238849cd47f

Merge pull request #11 from techgaun/dependabot/npm_and_yarn/minimist-1.2.6

ttechgaun committed 3 years ago
Verified
0041237b33b5c544c0b6a31b153754ce2e521a99

Bump minimist from 1.2.5 to 1.2.6

ddependabot[bot] committed 3 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