farsinum
v1.0.0
Published
Simple function to convert English Numbers to Persian Numbers
Downloads
1
Readme
Simple function to convert English Numbers to Persian Numbers
Usage
npm install farsidigits
import farsiNum from "farsinum";
const myNumber = 0123456789;
const convertedNumbers = farsiDigits(myNumber);
// you can split numbers by providing a split range
farsiDigits(myNumber, 3);
// output -> 0,123,456,789
// change seperator character
farsiDigits(myNumber, 3, " ");
// output -> 0 123 456 789