Convert english number to nepali and vice versa
run
npm i nep-num
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
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
import { getComma } from "nep-num";
getComma("०१२", "np"); // np for nepali style comma and en for english style comma
Please open an issue for support.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
MIT © Sajandhakal12