open-index/open-npm huggingface dataset:
npm package: @kjts20/react-fusion
Description: ## 开始使用
Latest version: 1.0.0-beta.5

# 时时科技 react 组件库

## 开始使用

安装依赖

```bash
$ npm i
```

Start the dev server,

```bash
$ npm start
```

Build documentation,

```bash
$ npm run docs:build
```

Run test,

```bash
$ npm test
```

Build library via `father`,

```bash
$ npm run build
```
npm package: @kjts20/tool-h5
Description: wkj
Author: wkj
Latest version: 0.0.10

## 时时工具包-h5 扩展包

### 安装方式

```shell
npm install @kjts20/tool-h5
```

### 直接引入就即可使用

#### 使用方面

```typescript
import { axios2HttpServer, localStorageImpl, sessionStorageImpl } from '@kjts20/tool-react-h5';
import { CommonStorage, HttpServer, ResponseFilter } from '@kjts20/tool';
const httpServer = new HttpServer({
    ...axios2HttpServer,
    host,
    apiPrefix: mapiPrefix,
    setHeader() {
        return {
            token: getToken()
        };
    },
    responseIntercept(response) {
        if (response.code === 308) {
            MessagePlugin.warning('登录过期，请先登录！');
            loginOut();
            throw new Error('未登录！');
        } else {
            return response;
        }
    }
});

export const storage = new CommonStorage(sessionStorageImpl);

export const storageLocaltion = new CommonStorage(localStorageImpl);
```

```typescript
// 平台兼容
import { platformPolyfill } from '@kjts20/tool';
platformPolyfill();
```

```typescript
import { downloadJson, downloadCsv} from '@kjts20/tool-react-h5';
// 下载json文件
const jsonData = [
    { title: 'ID,', column: 'id' },
    { title: "标题'", column: 'title' },
    { title: '描述"', column: 'description' }
];
downloadJson('test.json',jsonData);

// 下载csv
const csvHeaderList = [
    { title: 'ID,', column: 'id' },
    { title: "标题'", column: 'title' },
    { title: '描述"', column: 'description' }
];
const csvBody = [
    {id: 1,  title: '测试11,等待的', description: '双引号"测试' }
    {id: 2,  title: '测试222,等待的', description: '双引号"测试' }
];
downloadCsv('test.csv',csvHeaderList, csvBody);
```
npm package: @kjts20/tool-h5-react-antd
Description: 时时科技 工具包 react antd
Author: wkj
Latest version: 0.0.2

## 时时工具包-react 语言的 h5 专用

### 安装方式

```shell
npm install @kjts20/tool-react-h5
```

### 直接引入就即可使用

#### 请求类

```TS
import {httpServer} from "@kjts20/tool-react-h5";
// 修改host
httpServer.setHost("/");
// 发送get请求
httpServer.get("/url", {id: 5});
```
npm package: @kjts20/tool-node
Description: wkj
Author: wkj
Latest version: 0.0.12

## 时时工具包-node 专用

### 安装方式

```shell
npm install @kjts20/tool-node
```

### 直接引入就即可使用

#### 请求方面

```typescript
import { axios2HttpServer, localStorageImpl, sessionStorageImpl } from '@kjts20/tool-react-h5';
import { CommonStorage, HttpServer, ResponseFilter } from '@kjts20/tool';
const httpServer = new HttpServer({
    ...axios2HttpServer,
    host,
    apiPrefix: mapiPrefix,
    setHeader() {
        return {
            token: getToken()
        };
    },
    responseIntercept(response) {
        if (response.code === 308) {
            MessagePlugin.warning('登录过期，请先登录！');
            loginOut();
            throw new Error('未登录！');
        } else {
            return response;
        }
    }
});
```

#### 引入缓存: storage