Newer
Older
vmk-demo-bot / admin / node_modules / ext / docs / string_ / camel-to-hyphen.md
@eugene-sukhodolskiy eugene-sukhodolskiy 18 days ago 360 bytes init

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