Converts a string or the keys of an object to snake_case.
Examples: snakeify('HelloWorld-how-are---you') // 'hello_world_how_are_you' snakeify('Hello.World') // 'hello.world' snakeify('Hello/World') // 'hello/world' snakeify({ helloWorld: now }) // { hello_world: now }
The string or object to snakeify
The snake_cased string or object
Converts a string or the keys of an object to snake_case.
Examples: snakeify('HelloWorld-how-are---you') // 'hello_world_how_are_you' snakeify('Hello.World') // 'hello.world' snakeify('Hello/World') // 'hello/world' snakeify({ helloWorld: now }) // { hello_world: now }