UNPKG

@visulima/string

Version:

Functions for manipulating strings.

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