persian

1.0.1 • Public • Published

Library for Persian(farsi) localization

To Persian

Latest Version

const persian = require('persian');
 
persian.toPersian('اردك ٤6٦');
// اردک ۴۶۶
 
persian.toPersian('اردك ٤6٦', { english: false });
// اردک ۴6۶
 
persian.toEnglish('۷۶۳۲۴۵');
// 763245
 

Prior Version 1.0.0 (<= 1.0.0)

const toPersian = require('persian');
 
toPersian('اردك ٤6٦');
// اردک ۴۶۶
 
toPersian('اردك ٤6٦', { english: false });
// اردک ۴6۶
 

Package Sidebar

Install

npm i persian

Weekly Downloads

1

Version

1.0.1

License

Beerware

Last publish

Collaborators

  • mahmoud_hsf