1.0.6 • Published 3 years ago
nep-num v1.0.6
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