(string) hyphenaged (asVendorPrefix)
camelCase や StudlyCaps の文字列を、ハイフン区切り記法に変換します。
Parameters:
name | type | default | caption |
---|---|---|---|
asVendorPrefix | boolean | false | Treat as vendor-prefix (CSS). |
Returns:
- (string) — Hyphenaged String.
Author:
- StewEucen
Since:
- Version 1.0.0
Aliases:
- toTrainCase
- toChainCase
- toKebabCase
- toSpinalCase
Examples:
"chainCase".hyphenaged() //=> "chain-case"
"VendorPrefix".hyphenaged(true) //=> "-vendor-prefix"
"camelCase".hyphenaged(true) //=> "camel-case"