deunicode
v1.0.7
Published
Replace unicode characters with ascii equivalent
Downloads
637
Readme
Deunicode
A simple function to replace unicode characters with their ascii counterparts. Most of the replacements come from twilio.
Installation
npm install deunicode
Quickstart
import { deunicode } from 'deunicode';
const text = '\uFF28\u1D07\u029f\u029f\u1D0F \u1D21\u1D0F\u0280\u029f\u1D05\uFE57';
console.log(text) // Hᴇʟʟᴏ ᴡᴏʀʟᴅ﹗
console.log(deunicode(text)) // HELLO WORLD!