Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vendethiel/to-camel-case
- Owner: vendethiel
- Created: 2013-04-02T12:00:04.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-01-03T03:17:46.000Z (about 10 years ago)
- Last Synced: 2024-04-14T15:05:58.676Z (9 months ago)
- Topics: camelcase, javascript
- Language: JavaScript
- Size: 152 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
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