mirror of
https://github.com/wishthis/wishthis.git
synced 2026-04-24 00:20:50 -04:00
360 B
360 B
string.camelToHyphen() (ext/string_/camel-to-hyphen)
Convert camelCase string to hyphen separated, e.g. oneTwoThree into one-to-three. Useful when converting names from js property convention into filename convention.
const camelToHyphen = require("ext/string_/camelToHyphen");
camelToHyphen.call("razDwaTrzy"); // raz-dwa-trzy