UNPKG

@visulima/string

Version:

Functions for manipulating strings.

17 lines (16 loc) 621 B
import { b as CaseOptions, N as NoCase } from "../packem_shared/types.d-fhe030jX.js"; import "../packem_shared/types.d-CmNvyl4l.js"; /** * Converts a string to no case (space separated words). * @example * ```typescript * noCase("foo bar") // => "foo bar" * noCase("foo-bar") // => "foo bar" * noCase("foo_bar") // => "foo bar" * noCase("XMLHttpRequest") // => "xml http request" * noCase("AJAXRequest") // => "ajax request" * noCase("QueryXML123String") // => "query xml 123 string" * ``` */ declare const noCase: <T extends string = string>(value?: T, options?: CaseOptions) => NoCase<T>; export { noCase as default };