toKebabCase

Transform to kebab-case.

Install

Install all functions of strman

yarn add strman

or just the toKebabCase function

yarn add strman.tokebabcase

Usage

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.'