1.8.3 β’ Published 2 years ago
weird-to-normal-chars v1.8.3
Weird to normal chars converter
Library to detect weird characters in a string and convert them to normal chars. This project was born to convert biographies in social medias that are sometimes written using weird special characters and fonts, π»πΈπΊπ΄ β£βββ’ π Ύπ ½π ΄.
I mostly used instafonts.io to find the weird chars.
Install
npm i weird-to-normal-chars
Example
const { weirdToNormalChars } = require('weird-to-normal-chars');
const result1 = weirdToNormalChars('ππ₯π¦π° π¦π° π π΄π’π¦π―π‘ π°π±π―π¦π«π€');
const result2 = weirdToNormalChars('π―π½πΎπ πΎπ πΆ πππΎππΉ ππππΎππ');
const result3 = weirdToNormalChars('ππππ€ ππ€ π π¨πππ£π π€π₯π£πππ');
console.log(result1); // This is a weird string
console.log(result2); // This is a weird string
console.log(result3); // This is a weird string
Run tests
npm test
Run lint
npm run lint
I need you
To support as many chars as possible I need your help. If you have a list of chars that are not covered already, please open an Issue or open a Pull Request.