{"id":20428246,"url":"https://github.com/imranbarbhuiya/decancer","last_synced_at":"2025-06-23T05:35:57.202Z","repository":{"id":37019394,"uuid":"497671523","full_name":"imranbarbhuiya/decancer","owner":"imranbarbhuiya","description":"A  package to remove zalgo and common confusables from strings.","archived":false,"fork":false,"pushed_at":"2025-04-09T16:56:21.000Z","size":13596,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T17:51:17.139Z","etag":null,"topics":["clean","confusing","decancer","hacktoberfest","zalgo"],"latest_commit_sha":null,"homepage":"https://imranbarbhuiya.github.io/decancer","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imranbarbhuiya.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["imranbarbhuiya"]}},"created_at":"2022-05-29T18:11:28.000Z","updated_at":"2025-04-07T10:38:51.000Z","dependencies_parsed_at":"2023-12-22T08:23:05.152Z","dependency_job_id":"e717f2c9-3a52-4a6a-b2b6-cbe451a5bcf3","html_url":"https://github.com/imranbarbhuiya/decancer","commit_stats":{"total_commits":125,"total_committers":4,"mean_commits":31.25,"dds":"0.22399999999999998","last_synced_commit":"7f943fbf481b7552492e598aac1a7f0e88009b80"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":"imranbarbhuiya/package-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranbarbhuiya%2Fdecancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranbarbhuiya%2Fdecancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranbarbhuiya%2Fdecancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranbarbhuiya%2Fdecancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imranbarbhuiya","download_url":"https://codeload.github.com/imranbarbhuiya/decancer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248619174,"owners_count":21134366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clean","confusing","decancer","hacktoberfest","zalgo"],"created_at":"2024-11-15T07:24:48.364Z","updated_at":"2025-04-12T19:22:55.529Z","avatar_url":"https://github.com/imranbarbhuiya.png","language":"TypeScript","funding_links":["https://github.com/sponsors/imranbarbhuiya","https://www.buymeacoffee.com/parbez","https://ko-fi.com/Y8Y1CBIJH'"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# @imranbarbhuiya/decancer\n\n[![GitHub](https://img.shields.io/github/license/imranbarbhuiya/decancer)](https://github.com/imranbarbhuiya/decancer/blob/main/LICENSE)\n[![codecov](https://codecov.io/gh/imranbarbhuiya/decancer/branch/main/graph/badge.svg?token=token)](https://codecov.io/gh/imranbarbhuiya/decancer)\n[![npm](https://img.shields.io/npm/v/@imranbarbhuiya/decancer?color=crimson\u0026logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/@imranbarbhuiya/decancer)\n\n\u003c/div\u003e\n\n## Description\n\nA package to remove zalgo and common confusable characters from strings.\n\nRead Full Documentation [here](https://imranbarbhuiya.github.io/decancer).\n\n## Features\n\n-   Written In Typescript\n-   Offers CJS, ESM and UMD builds\n-   Full TypeScript \u0026 JavaScript support\n\n\u003e **Note**\n\u003e This project is not perfect, false-positives may happen.\n\n## Installation\n\nYou can use the following command to install this package, or replace npm install with your package manager of choice.\n\n```bash\nnpm i @imranbarbhuiya/decancer\n```\n\n## Usage\n\n```ts\nimport { decancer, isCancerous, cancerPercentage } from '@imranbarbhuiya/decancer';\n\n// Check if a string is cancerous\n\nisCancerous('hello world'); // false\nisCancerous('vＥⓡ𝔂 𝔽𝕌Ňℕｙ ţ乇𝕏𝓣'); // true\n\ncancerPercentage('vＥⓡ𝔂 𝔽𝕌Ňℕｙ ţ乇𝕏𝓣', true); // 67\ncancerPercentage('My name is Stale'); // 0\n\n// Decancer a string\nconst result = decancer('Ḣ͚͇͎̰̙̗̹́͟e̞̪̫̣͖̱͍̻̲ͧ̌̀̚̚͘͜w̸̡͕̽̈̾ͬw̥̪͈̖̻ͭ̈́̽ͫ̈͘ơ̢̞ͭͣ̅̑ͭ͗̒̃ ̸͔̝̟̟̳̝͋̄ͥ̈͞W̸͍̬̎̊̎̑͆̐̀̕ò̰̙̺̋ͭ͗́̄̚͝r̪͈̹͈ͧ̅ͨ͛͋͛̃͒̌́l̴̡̰̰͇̪̘̱ͯ̈̓ͨ̕d͎͙̥̩̔̾ͦ̀͞'); // 'Hewwo World'\n```\n\n## Buy me some doughnuts\n\nIf you want to support me by donating, you can do so by using any of the following methods. Thank you very much in advance!\n\n\u003ca href=\"https://www.buymeacoffee.com/parbez\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n\u003ca href='https://ko-fi.com/Y8Y1CBIJH' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\n## Contributors ✨\n\nThanks goes to these wonderful people:\n\n\u003ca href=\"https://github.com/imranbarbhuiya/TagScript/graphs/contributors\"\u003e\n    \u003cimg src=\"https://contrib.rocks/image?repo=imranbarbhuiya/TagScript\" /\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranbarbhuiya%2Fdecancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimranbarbhuiya%2Fdecancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranbarbhuiya%2Fdecancer/lists"}