Skip to content

vendethiel/to-camel-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

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

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

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

License

MIT