@lavadrop/kebab-case
v3.0.0
Published
Converts a string value into kebab case.
Downloads
2,699
Maintainers
Readme
@lavadrop/kebab-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 | 200 bytes
Converts a string value into kebab case.
Usage
import kebabCase from '@lavadrop/kebab-case'
kebabCase('fooBARBaz')
// => 'foo-bar-baz'
Parameters
| Name | Type | Description |
| :------ | :------- | :--------------------- |
| value
| string
| The string to convert. |
Returns
The kebab-cased string.
Return type
string