https://github.com/techgaun/get-nepali-number
get nepali numerals from english
https://github.com/techgaun/get-nepali-number
hacktoberfest nepali nepali-numeral nodejs numeral
Last synced: about 1 year ago
JSON representation
get nepali numerals from english
- Host: GitHub
- URL: https://github.com/techgaun/get-nepali-number
- Owner: techgaun
- License: mit
- Created: 2015-10-21T05:07:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-07-22T16:21:01.000Z (almost 3 years ago)
- Last Synced: 2024-04-25T02:25:55.489Z (about 2 years ago)
- Topics: hacktoberfest, nepali, nepali-numeral, nodejs, numeral
- Language: JavaScript
- Homepage:
- Size: 174 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# get-nepali-number [](https://travis-ci.org/techgaun/get-nepali-number)
> 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
```js
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](http://samar.techgaun.com)