@bearz/strings
Version:
A collection of string utilities to avoid extra allocations and enable case insensitivity comparisons.
15 lines (14 loc) • 499 B
TypeScript
/**
* The underscore module provides a function to convert a string to underscore case.
*
* @module
*/
import { type UnderScoreOptions } from "@bearz/slices/underscore";
/**
* Converts the string to underscore case, generally from camel or pascal
* case identifiers.
* @param value The value to convert.
* @param options The underscore conversion options.
* @returns The string in underscore case.
*/
export declare function underscore(value: string, options?: UnderScoreOptions): string;