UNPKG

text-header-case

Version:

Convert into a dash separated text of capitalized words

8 lines (7 loc) 185 B
import { capitalCase } from "text-capital-case"; export function headerCase(input, options = {}) { return capitalCase(input, { delimiter: "-", ...options, }); }