1.0.0 • Published 4 years ago
camelcase-to-kebab v1.0.0
Install
$ npm i camelcase-to-kebabExample
import { camelCaseToKebab } from 'camelcase-to-kebab'
console.log(camelCaseToKebab('helloKebabWorld'))
// => hello-kebab-worldBench
camelcase-to-kebab performs best among the top downloaded packages in npm and is probably the fastest way to do it if you just want that conversion and not any-to-kebab:
API
Table of Contents
camelCaseToKebab
Converts a string from camelCase to kebab-case.
Parameters
inputstring The string incamelCaseto be converted
Returns any The string in kebab-case
See also
- kebab-to-camel - convert kebab-case to camelCase
Contribute
All contributions are welcome!
License
MIT © 2021 stagas
1.0.0
4 years ago