intern-Assignment/Sequelize-library/node_modules/ext/docs/string_/camel-to-hyphen.md
2025-01-31 15:20:39 +05:30

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