my-utils-kit
Version:
A lightweight and type-safe utility library for working with strings, objects, array Performance methods in TypeScript. Includes helpful methods for deep cloning, object transformations, safe access, query string handling, and more — designed for modern J
35 lines (34 loc) • 2.16 kB
TypeScript
export declare function camelCase(str: string): string;
export declare function toSeperatedLowerCase(str: string, seperator: "_" | "-"): string;
export declare function kebabCase(str: string): string;
export declare function snakeCase(str: string): string;
export declare function pascalCase(str: string): string;
export declare function titleCase(str: string): string;
export declare function truncate(str: string, length: number, suffix?: string): string;
export declare function reverseStr(str: string): string;
export declare function reverseWords(str: string): string;
export declare function capitalize(str: string): string;
export declare function unCapitalize(str: string): string;
export declare function padStart(str: string, length: number, char: string): string;
export declare function padEnd(str: string, length: number, char: string): string;
export declare function isPalidrome(str: string): boolean;
export declare function countOccurences(str: string, char: string): number;
export declare function removeSpaces(str: string): string;
export declare function removeSpecialChar(str: string): string;
export declare function escapeHTML(str: string): string;
export declare function unescapeHTML(str: string): string;
export declare function slugify(str: string): string;
export declare function maskString(str: string, visibleCount?: number, maskChar?: string): string;
export declare function stripHTML(str: string): string;
export declare function removeDuplicate(str: string): string;
export declare function toTitleCase(str: string): string;
export declare function isAnagrams(str1: string, str2: string): boolean;
export declare function findLongestWord(str: string): string;
export declare function countWords(str: string): number;
export declare function swapCase(str: string): string;
export declare function randomString(len: number): string;
export declare function toAscii(char: string): number;
export declare function fromAscii(code: number): string;
export declare function toHex(char: string): string;
export declare function toBase64Unicode(str: string): string;
export declare function fromBase64Unicode(base64: string): string;