open-index/open-npm huggingface dataset:
npm package: @newbiemike/randomid-generator
Description: @newbiemike/randomid-generator
Author: newbiemike
Latest version: 1.0.1

@newbiemike/randomid-generator

Randomid-generator is a component that generate for you random id. 
Creating random string value from letters and numbers.

Usage

randomID()

Inside brackets put number (length) of your random ID.

Example:
randomID(10)

Installation

npm i --save @newbiemike/randomid-generator

or

yarn add @newbiemike/randomid-generator
npm package: @newbility/koa-core
Description: Newbility 的 Koa 核心库,主要提供如下基础组件
Author: jameshu
Latest version: 0.2.50

### @newbility/koa-core

Newbility 的 Koa 核心库,主要提供如下基础组件

- Controller
- Router
- Middleware
- StaticResource
npm package: @newbility/nacos
Description: nacos 实现库,使用 nacos 实现 服务注册，配置拉取等相关功能
Author: jameshu
Latest version: 0.2.50

### @newbility/nacos

nacos 实现库,使用 nacos 实现 服务注册，配置拉取等相关功能

### 使用教程

```
// 在启动项目中重写 `InitSettingManager` 函数
class App extends Program {
  protected override async InitSettingManager(): Promise<void> {
    super.InitSettingManager();
    await UseNacosAsync();
  }
}

// 在Startup模块中添加`NacosModule`依赖项
@DependsOn(NacosModule)
export class Startup extends AppModule {}

```

### 配置文件

```
{
  "nacos": {
    "serverAddr": "127.0.0.1:8848",
    // "accessKey": "nacos",
    // "secretKey": "nacos",
    "namespace": "test",
    "requestTimeout": 6000,
    "configKeys": [
      "newbility-test",
      {
        "dataId": "newbility-test2",
        "needSubscribe": true
      }
    ],
    "appName": "newbility", // app名称
    "appIP": "192.168.1.1", // appIP地址,可选，默认本机IP
    "appPort": "28000", // app端口,可选，默认启动端口
  },
}
```
npm package: @newbility/oss-local
Description: oss 实现库,使用 local 文件系统 实现 Oss 服务的抽象
Author: jameshu
Latest version: 0.2.50

### @newbility/oss-local

oss 实现库,使用 local 文件系统 实现 Oss 服务的抽象
npm package: @newbility/queue-core
Description: Queue 抽象库，其中包含管道发布者与管道订阅者的抽象,并提供了各实现库的相关帮助函数
Author: jameshu
Latest version: 0.2.50

### @newbility/queue-core

Queue 抽象库，其中包含管道发布者与管道订阅者的抽象,并提供了各实现库的相关帮助函数
npm package: @newbility/redis
Description: Redis 缓存库，使用 ioredis 实现
Author: jameshu
Latest version: 0.2.50

### @newbility/redis

Redis 缓存库，使用 ioredis 实现

### 使用方式

首先应该在Module中引用 `RedisModule`模块

```
// 注入分布式缓存即可使用
@Inject(DISTRIBUTED_CACHE_INJECT_TOKEN) private readonly _disCache: IDistributedCache

```
npm package: @newbish/handlebars-async-helpers-ts
Description: Adding async function support to handlebars helpers
Author: Gaston Robledo
Latest version: 2.0.2

# Handlebars Async Helpers

Library that adds support to asynchronous function helpers to handlebars lib.

### How to install

```shell
npm install handlebars-async-helpers-ts
```

### How to use

```javascript
import Handlebars from "handlebars";
import asyncHelpers from "handlebars-async-helpers-ts";

const hb = asyncHelpers(Handlebars);

hb.registerHelper(
  "sleep",
  async (): Promise<string> =>
    new Promise((resolve) => {
      setTimeout(() => resolve("Done!"), 1000);
    })
);

const compileTemplate = async (): Promise<void> => {
  const template = hb.compile("Mark when is completed: {{#sleep}}{{/sleep}}");
  const result = await template();
  console.log(result);
  // 'Mark when is completed: Done!'
};

compileTemplate().catch(console.error);
```
npm package: @newbishme/homebridge-tuya
Description: 🏠 Offical Homebridge plugin for TuyAPI 
Author: Newbishme
Latest version: 1.1.3

<span align="center">

<a href="https://github.com/iRayanKhan/Assets-Repo/blob/master/Tuya-Plugin-Branding.png?raw=true"><img alt="homebridge-verified" src="https://github.com/iRayanKhan/Assets-Repo/blob/master/Tuya-Plugin-Branding.png?raw=true" width="500px"></a>

# Homebridge-Tuya

<a href="https://www.npmjs.com/package/homebridge-tuya"><img title="npm version" src="https://badgen.net/npm/v/homebridge-tuya" ></a>
<a href="https://www.npmjs.com/package/homebridge-tuya"><img title="npm downloads" src="https://badgen.net/npm/dt/homebridge-tuya" ></a>

</span>


Homebridge-tuya is a homebridge plugin that lets you control your Tuya based devices with Homekit. 

Some devices may not be supported. Please check the common issues tab in the wiki for more info. 


## Installation 
To use this plugin, follow the steps below:

1) Install [Homebridge](https://github.com/homebridge/homebridge), if you haven't already.

2) Install this plugin. You may need to prefix this command with ```sudo``` if you run into any issues.

```npm i -g homebridge-tuya```

3) Add your device's parameters to your ```config.json``` file, then reload Homebridge.

To find your devices configuration parameters, please look at the Wiki.

**Note** The wiki has some inconsitencies with V1 and 2. I will fix this, I justt need to wait for V2, before it's all up-to-date. 

**To get ID and Key** Watch [this](https://www.youtube.com/watch?v=oq0JL_wicKg) video. 

## Issues

If you spot any errors with the plugin, or have a question, feel free to open a issue.

Please be sure to check the Common Issues tab in the wiki, before you open an issue.

My goal is to reply to an issue within 48 hours. If I am delayed, please @ me so I can get the notification, or shoot me a tweet @iRayanKhan. 

## Contribution guide

Any help is welcome! 

If you would like to make refinments to this plugin, add new device support, or anything else feel free to make a fork, and submit a PR detailing the changes you made, and why. 



## Credits

CodeTheWeb - Original repo

mxdanger   - Plugin branding 

Amoo-Miki  - Plugin core

Oznu       - config.schema, and various enhancements in V2.0.0