UNPKG

@visulima/string

Version:

Functions for manipulating strings.

20 lines (19 loc) 722 B
import { b as CaseOptions, C as CamelCase } from "../packem_shared/types.d-fhe030jX.js"; import "../packem_shared/types.d-CmNvyl4l.js"; /** * Converts a string to camelCase. * @param value The string to convert. * @param options Options for case conversion. * @returns The string in camelCase. * @example * ```typescript * camelCase('foo bar') // 'fooBar' * camelCase('foo-bar') // 'fooBar' * camelCase('foo_bar') // 'fooBar' * camelCase('XMLHttpRequest') // 'xmlHttpRequest' * camelCase('AJAXRequest') // 'ajaxRequest' * camelCase('QueryXML123String') // 'queryXml123String' * ``` */ declare const camelCase: <T extends string = string>(value?: T, options?: CaseOptions) => CamelCase<T>; export { camelCase as default };