UNPKG

@promptbook/vercel

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

25 lines (24 loc) 738 B
/** * Semantic helper for camelCase strings * * @example 'helloWorld' * @example 'iLovePromptbook' * @public exported from `@promptbook/utils` */ export type string_camelCase = string; /** * Normalizes a given text to camelCase format. * * Note: [🔂] This function is idempotent. * * @param text The text to be normalized. * @param _isFirstLetterCapital Whether the first letter should be capitalized. * @returns The camelCase formatted string. * @example 'helloWorld' * @example 'iLovePromptbook' * @public exported from `@promptbook/utils` */ export declare function normalizeTo_camelCase(text: string, _isFirstLetterCapital?: boolean): string_camelCase; /** * TODO: [🌺] Use some intermediate util splitWords */