3.0.0 • Published 5 years ago

@lavadrop/kebab-case v3.0.0

Weekly downloads
215
License
MIT
Repository
github
Last release
5 years ago

@lavadrop/kebab-case

npm license Travis Build Status codecov Try @lavadrop/kebab-case on RunKit

Part of a library of zero-dependency npm modules that do just one thing.

npm

min + gzip | 200 bytes

source

Converts a string value into kebab case.

Usage

import kebabCase from '@lavadrop/kebab-case'

kebabCase('fooBARBaz')
// => 'foo-bar-baz'

Parameters

NameTypeDescription
valuestringThe string to convert.

Returns

The kebab-cased string.

Return type

string