UNPKG

@visulima/string

Version:

Functions for manipulating strings.

15 lines (14 loc) 600 B
import { b as CaseOptions, T as TitleCase } from "../packem_shared/types.d-fhe030jX.js"; import "../packem_shared/types.d-CmNvyl4l.js"; /** * With Title Case all words are capitalized, except for minor words. * @example * ```typescript * titleCase("this-IS-aTitle") // => "This is a Title" * titleCase("XMLHttpRequest") // => "XML Http Request" * titleCase("AJAXRequest") // => "AJAX Request" * titleCase("QueryXML123String") // => "Query XML 123 String" * ``` */ declare function titleCase<T extends string = string>(value?: T, options?: CaseOptions): TitleCase<T>; export { titleCase as default };