Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

to-camel

nikkypx7MIT1.0.1

Camel case a string

readme

to-camel Build Status

Camel case a string

Install

$ npm install to-camel

Usage

const toCamel = require('to-camel')

toCamel('foo-bar-baz-qux-lorem-ipsum') // 'fooBarBazQuxLoremIpsum'

API

toCamel(str, [options])

str - String with delimiters of space, hyphen, underscore or period

options - Object that takes an 'upper' option. When 'upper' is true the first letter in the string will be upper case.

License

MIT