Transform to kebab-case.
Install
Install all functions of strman
yarn add strmanor just the toKebabCase function
yarn add strman.tokebabcaseUsage
import { toKebabCase } from 'strman'
// OR
import toKebabCase from 'strman.tokebabcase'Parameters:
| Name | Type | Description |
|---|---|---|
value |
String | The String! |
- Source:
Returns:
String in kebab-case.
- Type
- String
Example
const title = 'A Javascript string manipulation library.'
toKebabCase(title)
// => 'a-javascript-string-manipulation-library.'