UNPKG

@visulima/string

Version:

Functions for manipulating strings.

18 lines (17 loc) 595 B
import { I as IdentifyCase } from "../packem_shared/types.d-fhe030jX.js"; import "../packem_shared/types.d-CmNvyl4l.js"; /** * Identifies the case style of a string. * @example * ```typescript * identifyCase("fooBar") // => "camel" * identifyCase("FooBar") // => "pascal" * identifyCase("foo_bar") // => "snake" * identifyCase("foo-bar") // => "kebab" * identifyCase("foo") // => "lower" * identifyCase("FOO") // => "upper" * identifyCase("FooBAR") // => "mixed" * ``` */ declare const identifyCase: <T extends string = string>(value?: T) => IdentifyCase<T>; export { identifyCase as default };