@mdkva/textkit
v1.2.3
Published
MDKVA TextKit is a lightweight API providing essential text utilities — slugify, truncate, title case, reverse, and random ID generation — designed for developers and automation projects.
Downloads
367
Readme
MDKVA TextKit — Developer Text API
Overview
TextKit is a collection of dependency-free utilities designed for fundamental text transformation and string manipulation. It provides standardized methods for handling common formatting tasks, URL preparation, and ID generation with technical precision.
Available Methods
TextKit.slugify(str): Converts a string into a URL-friendly format (lowercase, hyphen-separated).TextKit.titleCase(str): Capitalizes the first letter of each word in a string.TextKit.truncate(str, length, ending): Limits text to a specified length and appends a custom ending (default is...).TextKit.randomID(length): Generates a random alphanumeric string of the requested length.TextKit.reverse(str): Reverses the order of all characters in a string.TextKit.lowercase(str): Converts all characters to lowercase.TextKit.uppercase(str): Converts all characters to uppercase.TextKit.startsWithLetter(str, letter): Returns a boolean indicating if a string begins with the specified character.TextKit.repeatText(str, times): Repeats a string a designated number of times.
Technical Standards
- Dependency-Free: Operates as a lightweight library without external package requirements.
- Data Integrity: Performs all transformations locally; no string data is transmitted to external servers.
- Performance: Optimized for fast string operations within web and mobile environments.
- Functional Focus: Concentrates on high-precision utility for the underlying text layer of applications.
Support & Inquiry
For inquiries and feedback, please reach out via:
- Official Site: MDKVA.com
- Direct Email: [email protected]
- Personal Blog: MDanyalKayani.com
"Simplifying Life with Human-Centered Tech." — Danyal
