@lavadrop/snake-case
Part of a library of zero-dependency npm modules that do just one thing.
- 100% TypeScript support.
- It's not a party without
Lavadrop
!
min + gzip | 202 bytes
Converts a string value into snake case.
Usage
import snakeCase from '@lavadrop/snake-case'
snakeCase('fooBARBaz')
// => 'foo_bar_baz'
Parameters
Name | Type | Description |
---|---|---|
value |
string |
The string to convert. |
Returns
The snake-cased string.
Return type
string