transliterator
v0.1.0
Published
Turn strings that contain cyrillic characters into ascii compliant text
Downloads
554
Readme
Transliterator
Turn strings that contain cyrillic characters into ascii compliant text
Installation
npm install transliterator --save
API
var transliterator = require('transliterator');
transliterator(string, [replacement])
transliterator('źebŕa') // 'zebra'
transliterator('ǿ\'doules.') // 'o\'doules.'
transliterator('i hatè véggiês') // 'i hate veggies'
transliterator('a') // 'a'
transliterator('harǤold') // 'harold'
transliterator('䫸 is ŗŒ') // ' is rOE'
transliterator('', 'h') // 'h'
transliterator('Ⓩbad ሏ', '_') // '_bad _'
transliterator('պ պ պ պ', '_') // '_ _ _ _'