dashify

Convert a camelcase or space-separated string to a dash-separated string. ~12 sloc, fast, supports diacritics.

Browse on unpkg