How To Use It? You should use NPM to install it: npm i persian-digits Then you can use it: const persianDigits = require('persian-digits'); persianDigits(0123456789); And it returns a string containing your number but with Persian digits.