Skip to content

snake

Formats the given string in snake case fashion.

Usage

snake("hello world"); // => 'hello_world'
snake("va va-VOOM"); // => 'va_va_voom'
snake("helloWorld"); // => 'hello_world'

Installation

Terminal window
npx atmx add helper snake