@queso/camel-case
Version:
Converts a string value into camel case.
46 lines (29 loc) • 1.35 kB
Markdown
# @queso/camel-case
[](https://www.npmjs.org/package/@queso/camel-case)
[](https://travis-ci.org/jedmao/queso)
[](https://codecov.io/gh/jedmao/queso)
[](https://npm.runkit.com/@queso/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 [`Queso`](../../../../)!
[](https://nodei.co/npm/@queso/camel-case/)
min + gzip | 224 bytes
[source](https://github.com/jedmao/queso/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 '@queso/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
```