UNPKG

@oxog/string

Version:

Comprehensive string manipulation utilities with zero dependencies

9 lines (8 loc) 653 B
import type { TruncateOptions, WrapOptions, SlugifyOptions, PadType } from '../types'; export declare function reverse(str: string): string; export declare function shuffle(str: string): string; export declare function repeat(str: string, count: number, separator?: string): string; export declare function truncate(str: string, length: number, options?: TruncateOptions): string; export declare function pad(str: string, length: number, fillString?: string, type?: PadType): string; export declare function wrap(str: string, width: number, options?: WrapOptions): string; export declare function slugify(str: string, options?: SlugifyOptions): string;