UNPKG

text-dot-case

Version:

Convert into a lower case text with a period between words

11 lines (10 loc) 249 B
import { noCase } from "text-no-case"; export function dotCase(input, options = {}) { // Handle null/undefined inputs gracefully if (!input) return ""; return noCase(input, { delimiter: ".", ...options, }); }