@lavadrop/snake-case
v0.4.0
Published
Converts a string value into snake case.
Downloads
7
Maintainers
Readme
@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