kebab-to-camel
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

kebab-to-camel

convert kebab-case to camelCase

🔧 Install · 🧩 Example · 🚴 Bench · 📜 API docs · 🔥 Releases · 💪🏼 Contribute · 🖐️ Help


Install

$ npm i kebab-to-camel

Example

import { kebabToCamel } from 'kebab-to-camel'

console.log(kebabToCamel('hello-camel-world'))
// => helloCamelWorld

Bench

kebab-to-camel 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-camel:

API

Table of Contents

kebabToCamel

src/index.ts:7-18

Converts a string from kebab-case to camelCase.

Parameters

  • input string The string in kebab-case to be converted

Returns string The string in camelCase

Contribute

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2021 stagas

Package Sidebar

Install

npm i kebab-to-camel

Weekly Downloads

13

Version

1.0.1

License

MIT

Unpacked Size

9.59 kB

Total Files

9

Last publish

Collaborators

  • stagas