Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vendethiel/to-camel-case

String to camel case
https://github.com/vendethiel/to-camel-case

camelcase javascript

Last synced: about 2 months ago
JSON representation

String to camel case

Awesome Lists containing this project

README

        

# to-camel-case

Converts a string to camelCase

## Installation

$ component install vendethiel/to-camel-case

$ npm install to-camel-case

## API

### toCamelCase(string, first = false)

```js
toCamelCase("hello-ya").should.equal("helloYa")

toCamelCase("chocolate-rain").should.equal("chocolateRain")

toCamelCase("hello-howare-ya", true).should.equal("HelloHowareYa")
```

## License

MIT