open-index/open-npm huggingface dataset:
npm package: @rongjun/hapi
Description: ## 一个api接口生成器，目前可以支持yapi的接口文档生成
Latest version: 0.0.6

# hapi

## 一个api接口生成器，目前可以支持yapi的接口文档生成

## 快速开始
```
yarn add -D @rongjun/hapi

```
### 配置文件
```
// hapi.config.js
const authorMap = {
28: '作者1',
18: '作者2'
}
const getAuthorName = (id) => {
return authorMap[id] || `${id}号开发`
}
export default {
yapiUrl: 'https://yapi.xxxxx.site',
outputFilePath: 'src/api/index.js',
requestFunctionFilePath: 'src/api/request.js',
comment: {
extraTags: (ii) => [
{
name: '作者',
value: getAuthorName(ii.uid)
}
]
},
projects: [
{
categories: [
// {
//   id: [3041, 3049],
//   prefixPath: '/ftvDevice',
//   getRequestFunctionName(interfaceInfo, changeCase) {
//     return changeCase.camelCase(
//       'api_' + interfaceInfo.path.replace(/\/api(?=\/)/, '')
//     )
//   },
//   setRequestFunctionExtraInfo(ii) {
//     return {
//       title: ii.title,
//       author: getAuthorName(ii.uid)
//     }
//   }
// },
{
id: [917],
getRequestFunctionName(interfaceInfo, changeCase) {
return changeCase.camelCase(
'api_' + interfaceInfo.path.replace(/\/api(?=\/)/, '')
)
},
setRequestFunctionExtraInfo(ii) {
return {
title: ii.title,
author: getAuthorName(ii.uid)
}
}
}
],
token: '90af93e7e1e32c3cf2b6e4e244af8df96c6ab87300eab0f27160385157d8b654'
}
]
}

```

### 未来待续......
npm package: @rongle/ty-ui
Description: UI KIT for tuya
Latest version: 1.0.0

# Tuya UI

一款多端 UI 组件库

## 特性

- 一套组件可以在 `微信小程序`，`支付宝小程序`，`百度小程序`，`H5` 多端适配运行（`ReactNative` 端暂不支持）
- 提供友好的 API，可灵活的使用组件

## 体验

请使用微信扫一扫以下体验码

TODO

## 相关链接

TODO

## 安装

需要安装 `Taro` 开发工具 `@tarojs/cli`，`Taro` 版本需要在 `1.0.0-beta.18` 以上

```bash
npm install -g @tarojs/cli
```

然后在项目中安装 Tuya UI

```bash
npm install ty-ui
```

## 使用

在代码中 `import` 需要的组件并按照文档说明使用

```js
import { TyButton } from 'ty-ui'
```

## License

MIT
npm package: @rongmz/react-stock-heatmap
Description: This is a react chart library for genarating &quot;Stock Heatmap&quot; with given market depth data. Stock Heatmap graph useful for day traders.
Author: Rounak Saha
Latest version: 1.0.2

# @rongmz/react-stock-heatmap

> This is a react chart library for genarating &quot;Stock Heatmap&quot; with given market depth data. Stock Heatmap graph useful for day traders.

[![NPM](https://img.shields.io/npm/v/@rongmz/react-stock-heatmap.svg)](https://www.npmjs.com/package/@rongmz/react-stock-heatmap) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)


**[Live Demo Here](https://rongmz.in/react-stock-heatmap/)**


## Screenshot
![Screenshot](./screenshot.png)


## Install

```bash
npm install --save @rongmz/react-stock-heatmap
```

## Usage

```jsx
import React from 'react'
import StockHeatmap from '@rongmz/react-stock-heatmap';

class Example extends React.Component {

  heatmapRef = React.createRef();

  loadDataFromFile = () => {
    // Somehow load market depth datapoints
    ...
    ...
    // set the data to StockHeatmap to render graph
    if(heatmapRef.current !== null) {
      heatmapRef.current.setData(data);
    }
  }

  onLiveDataReceived = (data) => {
    // Add more data to existing data. This is useful for live graphing.
    if(heatmapRef.current !== null) {
      heatmapRef.current.addData(data);
    }
  }

  render() {
    return <StockHeatmap ref={heatmapRef} width={800} height={600} />
  }

}
```


## License

MIT © [Rounak Saha](https://github.com/rongmz)
npm package: @rongmz/simple-event-emitter
Description: A simple event emitter. Can be used as replacement of Redux.
Author: Rounak Saha
Latest version: 1.0.5

# Simple Event Emitter

A simple event emitter. Can be used as replacement of Redux.

## Getting Started

Install from npm 
```
npm i @rongmz/simple-event-emitter
```

Import EventEmitter from module
```javascript
import EventEmitter from '@rongmz/simple-event-emitter';
```

Emit an event with optional data
```javascript
EventEmitter.emit('event_name', anyData)
  .then(data => {
    // data is the value returned from last listener
  });
```

Subscribe and Unsubscribe to/from an event
```javascript
const unsubscribe = EventEmitter.on('event_name', function(data, chainValue) {
  // The emitted data is available as data.
  // chainValue contains value returned from previous listeners for this event.
  // any value required for next listeners of this event must be returned form this current listener.
  return `This is optional sample data retrned to be 
          used in next listener for this event, or to
          be resolved in emit function.`
});

// we can easily remove the attached listener from the event by calling the unsubscribe function
unsubscribe();
```

Remove all listeners from an event
```javascript
EventEmitter.offAll('event_name');
```