UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

11 lines (9 loc) 584 B
declare const camelize: (str: string) => string; declare const hyphenate: (str: string) => string; declare const snake2camel: (str: string) => string; declare const camel2snake: (str: string) => string; declare const capitalizeFirst: (value: string) => string; declare function slugify(text: string): string; declare function getRandomString(length: number, alphanumeric?: "a" | "n"): string; declare function cutString(value: string, limit: number): string | undefined; export { camel2snake, camelize, capitalizeFirst, cutString, getRandomString, hyphenate, slugify, snake2camel };