dash
Convert a string to dash case
334 bytes
since v12.1.0
Usage
Given a string returns it in dash case format.
import * as import _
_ from 'radashi'
import _
_.function dash(str: string): string
Formats the given string in dash case fashion.
dash('green fish blue fish') // => green-fish-blue-fishdash splits on common word separators and camel case boundaries, but it does
not split adjacent letters and numbers.
import _
_.function dash(str: string): string
Formats the given string in dash case fashion.
dash('helloWorld12Bye') // => hello-world12-bye