UNPKG

text-param-case

Version:

Convert into a lower cased text with dashes between words

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