1.0.1 • Published 5 years ago
to-camel v1.0.1
to-camel
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