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

https://github.com/kne-union/camel-case

将字符串转化成驼峰
https://github.com/kne-union/camel-case

camelcase string

Last synced: about 1 year ago
JSON representation

将字符串转化成驼峰

Awesome Lists containing this project

README

          

# camel-case

### 描述

将字符串转化成驼峰

### 安装

```shell
npm i --save @kne/camel-case
```

### 概述

用于将一个字符串转化为驼峰

```js
import camel from '@kne/camel-case';

camel('user-info'); //UserInfo

camel('user-info', {caseStyle: 'lower'}); //UserInfo
```

### 示例

#### 示例样式

```scss
.ant-card {
border-color: black;
text-align: center;
width: 200px;
}
```

#### 示例代码

- 这里填写示例标题
- 这里填写示例说明
- _CamelCase(@kne/camel-case)

```jsx
const {default:camelCase} = _CamelCase;

const BaseExample = ()=>{
return


输入: user-info,输出:{camelCase('user-info')}


输入: user_info,输出:{camelCase('user_info')}


;
};

render();

```

### API

|属性名|说明|类型|默认值|
| --- | --- | --- | --- |