/dash-to-camelcase

Converts a string with words separated by dashes into a camel cased string.

Primary LanguageJavaScriptMIT LicenseMIT

dash-to-camelcase

Converts a string with words separated by dashes into a camel cased string.

Usage

const dashToCamelcase = require('dash-to-camelcase')
dashToCamelcase('name-of-component')
// => 'nameOfComponent'

API

dashToCamelcase(string)

Returns the modified string.

string

Type: string