A package to remove zalgo and common confusable characters from strings.
Read Full Documentation here.
- Written In Typescript
- Offers CJS, ESM and UMD builds
- Full TypeScript & JavaScript support
Note This project is not perfect, false-positives may happen.
You can use the following command to install this package, or replace npm install with your package manager of choice.
npm i @imranbarbhuiya/decancer
import { decancer, isCancerous } from '@imranbarbhuiya/decancer';
// Check if a string is cancerous
isCancerous('hello world'); // false
isCancerous('vEⓡ𝔂 𝔽𝕌Ňℕy ţ乇𝕏𝓣'); // true
// Decancer a string
const result = decancer('HУPΞЯ_XD');
If you want to support me by donating, you can do so by using any of the following methods. Thank you very much in advance!
Thanks goes to these wonderful people (emoji key):
Parbez 💻 🚧 🤔 |
WhiteSource Renovate 🚧 |
This project follows the all-contributors specification. Contributions of any kind welcome!