1
0
forked from dyf/APP
Files
APP/node_modules/ext/docs/string_/camel-to-hyphen.md

10 lines
360 B
Markdown
Raw Normal View History

2025-07-05 14:49:26 +08:00
# `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.
```javascript
const camelToHyphen = require("ext/string_/camelToHyphen");
camelToHyphen.call("razDwaTrzy"); // raz-dwa-trzy
```