Blazing‑Fast Conversion • ASCII‑Clean Output • Zero‑Noise Normalization • Trusted by Devs Worldwide
- 🚀 Blazing‑fast at
~900K ops/sec1 across508Unicode chars - ⚡ Converts
diacriticsto plainASCIIinstantly - 🧠 Handles full
Unicoderange with mapped rules - 🧹 Cleans up noisy input for search and indexing
- 🔤 Preserves
lettercase whilenormalizingtext - 🛠 Built with
TypeScriptfor strong typing - 🧩 Uses a modular
replacer(@igorskyflyer/mapped-replacer) for easy rule extension - 🚫 Returns
emptystring oninvalidinput - 📦
Lightweightand ready for npm projects
Install it by executing any of the following, depending on your preferred package manager:
pnpm add @igorskyflyer/duoscribiyarn add @igorskyflyer/duoscribinpm i @igorskyflyer/duoscribiduoscribi(input: string): stringConverts letters with diacritics to regular, ASCII letters.
input: string - The string to convert.
Returns the converted string or an empty string otherwise.
To see the extensive list of
508supported characters with diacritics, see the SUPPORTED_CHARS.md file.
example.ts
import { duoscribi } from '@igorskyflyer/duoscribi'
duoscribi('Ťḥė ẅâÿ ţɵ ɡėţ șţãrţėd iș ţɵ quiţ ţālkinɡ ānd bėgin dɵinɡ')
// returns 'The way to get started is to quit talking and begin doing'📑 Read about the latest changes in the CHANGELOG.
Licensed under the MIT license.
Consider buying me a coffee. ☕
Thank you for supporting my efforts! 🙏😊
🎡 Parse, manage, compare and output SemVer-compatible version numbers. 🛡
🧵 Provides ways of checking whether a String is present in an Array of Strings using custom Comparators. 🔍
🏃♂️ Fast and simple Map and RegExp based HTML entities encoder. 🍁
🥽 Provides ways of parsing UNC paths and checking whether they are valid. 🎱
🥞 Removes HTML code from the given string. Can even extract text-only from the given an HTML string. ✨
Created by Igor Dimitrijević (@igorskyflyer).
Footnotes
-
tested on an
AMD 5825u. ↩
