https://github.com/DavideViolante/weird-to-normal-chars
Weird to normal chars converter
https://github.com/DavideViolante/weird-to-normal-chars
Last synced: about 18 hours ago
JSON representation
Weird to normal chars converter
- Host: GitHub
- URL: https://github.com/DavideViolante/weird-to-normal-chars
- Owner: DavideViolante
- License: mit
- Created: 2019-09-11T08:31:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-01T14:18:57.000Z (over 1 year ago)
- Last Synced: 2025-10-24T20:39:51.237Z (8 months ago)
- Language: JavaScript
- Size: 1.35 MB
- Stars: 11
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-projects - weird-to-normal-chars - Weird to normal chars converter β11 `JavaScript` (π¦ Legacy & Inactive Projects)
README
# Weird to normal chars converter
[](https://github.com/DavideViolante/weird-to-normal-chars/actions?query=workflow%3A"Node.js+CI") [](https://coveralls.io/github/DavideViolante/weird-to-normal-chars?branch=master) [](https://codeclimate.com/github/DavideViolante/weird-to-normal-chars/maintainability)  [](https://www.paypal.me/dviolante)
[](https://nodei.co/npm/weird-to-normal-chars/)
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](https://instafonts.io) to find the weird chars.
### Install
```
npm i weird-to-normal-chars
```
### Example
```javascript
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.
### Author
- [Davide Violante](https://github.com/DavideViolante)