Skip to main content
Module

x/case/dotCase.ts

Convert strings between camelCase, PascalCase, Title Case, snake_case and more
Latest
File
import normalCase from "./normalCase.ts";
/** * Convert a `string` to dot case. * * Example: * * ```ts * dotCase("test string"); * //=> "test.string" * ``` */export default function dotCase(value: string, locale?: string): string { return normalCase(value, locale, ".");}