npm.io
0.2.2 • Published 3 years ago

fenglish

Licence
MIT
Version
0.2.2
Deps
0
Size
16 kB
Vulns
0
Weekly
0

Fenglish

Version Downloads Tests License

Includes utilities which play with persian texts for Fenglish purposes.

Install

npm i fenglish

Usages

toFenglish

This function takes a Persian text and returns its Fenglish text.

Notes:

  • Vowels are effective in the output of this function
  • This function works correctly for "Alef", "Ayn", "Hamza", "Vaav" and "Ye" letters and not work correctly for other letters yet. (Work in progress...)
Example
import { toFenglish } from 'fenglish'

const persian = 'آرامَم مَن!'
console.log(toFenglish(persian)) // prints `aramam man!`

Keywords