@lavadrop/camel-case
Version:
Converts a string value into camel case.
46 lines (29 loc) • 1.39 kB
Markdown
# @lavadrop/camel-case
[](https://www.npmjs.org/package/@lavadrop/camel-case)
[](https://travis-ci.org/jedmao/lavadrop)
[](https://codecov.io/gh/jedmao/lavadrop)
[](https://npm.runkit.com/@lavadrop/camel-case)
Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.
- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Lavadrop`](../../../../)!
[](https://nodei.co/npm/@lavadrop/camel-case/)
min + gzip | 224 bytes
[source](https://github.com/jedmao/lavadrop/blob/master/src/packages/camel-case/camelCase.ts)
Converts a string value into [camel case](https://en.wikipedia.org/wiki/Camel_case).
## Usage
```ts
import camelCase from '@lavadrop/camel-case'
camelCase('foo-bar-baz')
// => 'fooBarBaz'
```
## Parameters
| Name | Type | Description |
| :------ | :------- | :--------------------- |
| `value` | `string` | The string to convert. |
## Returns
The camel-cased string.
### Return type
```ts
string
```