@lavadrop/kebab-case
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

@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

Name Type Description
value string The string to convert.

Returns

The kebab-cased string.

Return type

string

Package Sidebar

Install

npm i @lavadrop/kebab-case

Weekly Downloads

919

Version

3.0.0

License

MIT

Unpacked Size

13.4 kB

Total Files

8

Last publish

Collaborators

  • jedmao