UNPKG

@visulima/string

Version:

Functions for manipulating strings.

15 lines (14 loc) 573 B
import { b as CaseOptions, F as FlatCase } from "../packem_shared/types.d-fhe030jX.js"; import "../packem_shared/types.d-CmNvyl4l.js"; /** * Converts a string to flat case (all lowercase, no separators). * @example * ```typescript * flatCase("foo-barBaz") // => "foobarbaz" * flatCase("XMLHttpRequest") // => "xmlhttprequest" * flatCase("AJAXRequest") // => "ajaxrequest" * flatCase("QueryXML123String") // => "queryxml123string" * ``` */ declare const flatCase: <T extends string = string>(value?: T, options?: CaseOptions) => FlatCase<T>; export { flatCase as default };