UNPKG

text-path-case

Version:

Convert into a lower case text with slashes between words

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