An open API service indexing awesome lists of open source software.

https://github.com/brothersincode/f2f

Farsi to Finglish, a Persian transliterator
https://github.com/brothersincode/f2f

farsi javascript persian persian-transliterator transliteration

Last synced: 9 months ago
JSON representation

Farsi to Finglish, a Persian transliterator

Awesome Lists containing this project

README

          

# F2F
Farsi to Finglish, a Persian transliterator

A JavaScript port of [aminmarashi/onezero-f2f](https://github.com/aminmarashi/onezero-f2f) by [Amin Marashi](https://github.com/aminmarashi)

[![NPM version](https://img.shields.io/npm/v/f2f.svg?style=flat-square)](https://www.npmjs.com/package/f2f)
[![GitHub issues](https://img.shields.io/github/issues/brothersincode/f2f.svg?style=flat-square)](https://github.com/brothersincode/f2f/issues)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/brothersincode/f2f/master/LICENSE)
[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard)

## Install
``` bash
npm install f2f
```

## Usage
```js
var f2f = require('f2f');
var F2F = new f2f();

F2F.simplef2f('ثقلین'); // Outputs: "saghlin"
F2F.simplef2f('قسطنطنیه'); // Outputs: "ghastntnih"
```

### Browser
```html

var F2F = new f2f();
alert(F2F.simplef2f("قسطنطنیه"));

```

#### F2F.simplef2f([text])

##### text
Type: `string`

String in Persian to be converted.

## License

This software is licensed under the MIT License. [View the license](LICENSE).