camelToKebabCase
This is a JavaScript library implementing one function, camelToKebabCase.
It accepts a camelCase string as input and outputs a kebab-case equivalent. It also works for PascalCase inputs.
The package is licensed according to the very permissive
zlib/libpng license.
Installation
You can add camelToKebabCase to your JavaScript project by using a
package manager to install the camel-to-kebab
package. For example:
npm install --save camel-to-kebab
Usage
camelToKebabCase can be used in the browser, imported as a CommonJS
module, or imported as an ES module.
const camelToKebabCase = require("camel-to-kebab");
import camelToKebabCase from "camel-to-kebab";
<script src="../src/camel-to-kebab.js"></script>
Examples
const camelToKebabCase = require("camel-to-kebab");
console.log(camelToKebabCase("helloWorld"));
console.log(camelToKebabCase("camelToKebabCase"));
console.log(camelToKebabCase("borderTopLeftRadius"));