nep-num

1.0.6 • Public • Published

Nepali Numbers

Convert english number to nepali and vice versa

Installation

run

    npm i nep-num

Usage

converting english to nepali

import { getNepaliNumber } from "nep-num";

getNepaliNumber("123");
getNepaliNumber("Rs 123", true); // dirty = true
getNepaliNumber("123", false, "np"); // np for nepali style comma and en for english style comma

converting nepali to english

import { getEnglishNumber } from "nep-num";

getEnglishNumber("०१२");
getEnglishNumber("Rs ०१२", true); // dirty = true
getEnglishNumber("०१२", false, "np"); // np for nepali style comma and en for english style comma

get comma

import { getComma } from "nep-num";

getComma("०१२", "np"); // np for nepali style comma and en for english style comma

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.

License

MIT © Sajandhakal12

Package Sidebar

Install

npm i nep-num

Weekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

2.59 kB

Total Files

3

Last publish

Collaborators

  • sajandhakal12