ext
Version:
JavaScript utilities with respect to emerging standard
10 lines (6 loc) • 360 B
Markdown
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
```
Convert camelCase