Kebab-to-camel-string 🍢🐫

@common-utilities/kebab-to-camel-string 🧰

Typed with TypeScript npm version

kebabToCamelString is a common function for returning a kebab string as a camel string.

Install

yarn add @common-utilitiee/kebab-to-camel-string -D

Usage

// string
kebabToCamelString('test-thing')
// testThing

// object
kebabToCamelStringsInObject({ 'test-thing': 'foo' })
// { testThing: 'foo' }

Common Utilities 🧰

No cruft. No bloat. No dependencies.

Simple, typed, functional, documented, and tested javascript utility functions.

View other common utilities on Github.

Last updated

Was this helpful?