@igorskyflyer/duoscribi
v3.0.0
Published
✒ DúöScríbî allows you to convert letters with diacritics to regular letters. 🤓
Maintainers
Readme
📃 Table of Contents
🤖 Features
- 🚀 Blazing‑fast at
~900K ops/sec[^1] 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
🕵🏼 Usage
Install it by executing any of the following, depending on your preferred package manager:
pnpm add @igorskyflyer/duoscribiyarn add @igorskyflyer/duoscribinpm i @igorskyflyer/duoscribi🤹🏼 API
duoscribi(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.
💡 TIP
Supported Characters
To see the extensive list of
508supported characters with diacritics, see the SUPPORTED_CHARS.md file.
🗒️ Examples
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'📝 Changelog
📑 Read about the latest changes in the CHANGELOG.
🪪 License
Licensed under the MIT license.
💖 Support
🧬 Related
🎡 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. ✨
👨🏻💻 Author
Created by Igor Dimitrijević (@igorskyflyer).
[^1]: tested on an AMD 5825u.
