Skip to content

dash

Formats the given string in dash case fashion.

Usage

dash("hello world"); // => 'hello-world'
dash("va va_VOOM"); // => 'va-va-voom'
dash("helloWord"); // => 'hello-word'

Installation

Terminal window
npx atmx add helper dash