1.0.6 • Published 3 years ago

nep-num v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago