open-index/open-npm huggingface dataset:
npm package: @powerfulyang/cli
Description: cli tools
Author: powerfulyang
Latest version: 1.3.0

# cli

## Installation

```bash
npm i -g @powerfulyang/cli
```

init code quality check

```bash
pyc linter-init
```

## Use npx

```bash
npx @powerfulyang/cli linter-init
```

## Include

- eslint
- prettier
- stylelint
- lint-staged
- .editorconfig
- .gitattributes
- renovate
- commitlint
npm package: @powerfulyang/clipboardy
Description: Access the system clipboard (copy/paste)
Author: powerfulyang
Latest version: 3.0.0

# clipboardy

> Access the system clipboard (copy/paste)

Cross-platform. Supports: macOS, Windows, Linux, OpenBSD, FreeBSD, Android with [Termux](https://termux.com/), and [modern browsers](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API#Browser_compatibility).

## Install

```sh
npm install clipboardy
```

## Usage

```js
import clipboard from 'clipboardy';

clipboard.writeSync('🦄');

clipboard.readSync();
//=> '🦄'
```

## API

### clipboard

#### .write(text)

Write (copy) to the clipboard asynchronously.

Returns a `Promise`.

##### text

Type: `string`

The text to write to the clipboard.

#### .read()

Read (paste) from the clipboard asynchronously.

Returns a `Promise`.

#### .writeSync(text)

Write (copy) to the clipboard synchronously.

**Doesn't work in browsers.**

##### text

Type: `string`

The text to write to the clipboard.

#### .readSync()

Read (paste) from the clipboard synchronously.

**Doesn't work in browsers.**

## FAQ

#### Where can I find the source of the bundled binaries?

The [Linux binary](fallbacks/linux/xsel) is just a bundled version of [`xsel`](https://linux.die.net/man/1/xsel). The source for the [Windows binary](fallbacks/windows/clipboard_x86_64.exe) can be found [here](https://github.com/sindresorhus/win-clipboard).

## Related

- [clipboard-cli](https://github.com/sindresorhus/clipboard-cli) - CLI for this module
- [copy-text-to-clipboard](https://github.com/sindresorhus/copy-text-to-clipboard) - Copy text to the clipboard in the browser
npm package: @powerfulyang/jest-extended
Description: Additional Jest matchers
Author: Matt Phillips
Latest version: 3.3.0

<div align="center">
  <h1>jest-extended</h1>

🃏💪

Additional Jest matchers

</div>

<hr />

[![Build Status](https://img.shields.io/github/actions/workflow/status/jest-community/jest-extended/ci.yaml?style=flat-square)](https://github.com/jest-community/jest-extended/actions/workflows/ci.yaml)
[![Code Coverage](https://img.shields.io/codecov/c/github/jest-community/jest-extended.svg?style=flat-square)](https://codecov.io/github/jest-community/jest-extended)
[![version](https://img.shields.io/npm/v/jest-extended.svg?style=flat-square)](https://www.npmjs.com/package/jest-extended)
[![downloads](https://img.shields.io/npm/dm/jest-extended.svg?style=flat-square)](http://npm-stat.com/charts.html?package=jest-extended&from=2017-09-14)
[![MIT License](https://img.shields.io/npm/l/jest-extended.svg?style=flat-square)](https://github.com/jest-community/jest-extended/blob/main/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](./CONTRIBUTING.md)
[![Examples](https://img.shields.io/badge/%F0%9F%92%A1-examples-ff615b.svg?style=flat-square)](https://github.com/jest-community/jest-extended/tree/main/examples)

## Problem

Jest is an amazing test runner and has some awesome assertion APIs built in by default. However, there are times when
having more specific matchers (assertions) would be far more convenient.

## Solution

jest-extended aims to add additional matchers to Jest's default ones making it easy to test everything 🙌

## Contributing

If you've come here to help contribute - Thanks! Take a look at the [contributing](/CONTRIBUTING.md) docs as a way of getting started.

## Installation

See the [Installation Guide](https://jest-extended.jestcommunity.dev/docs/getting-started/install) on Jest Extended documentation site.

## Setup

See the [Setup instructions](https://jest-extended.jestcommunity.dev/docs/getting-started/setup) on Jest Extended documentation site.

## Matchers

See all available [matchers and interactive repl](https://jest-extended.jestcommunity.dev/docs/matchers) on Jest Extended documentation site.

## LICENSE

[MIT](/LICENSE)
npm package: @powerfulyang/lint
Description: A collection of configuration files containing prettier, eslint, stylelint
Author: powerfulyang
Latest version: 3.7.0

# lint
A collection of configuration files containing prettier, eslint, stylelint

## Install

```bash
npm install --save-dev @powerfulyang/lint
```

## eslint

Copy the following configuration to your project root directory `.eslintrc.js`.

```js
const { eslint } = require('@powerfulyang/lint');

module.exports = {
  ...eslint,
};
```

## prettier

Copy the following configuration to your project root directory `.prettierrc.js`.

```js
const { prettier } = require('@powerfulyang/lint');

module.exports = {
  ...prettier,
};
```

## stylelint

Copy the following configuration to your project root directory `.stylelintrc.js`.

```js
const { stylelint } = require('@powerfulyang/lint');

module.exports = {
  ...stylelint,
};
```
npm package: @powerfulyang/node-utils
Description: common utils
Author: powerfulyang
Latest version: 1.6.0

# utils

## Installation

### First, install Rust

#### Linux

```bash
curl https://sh.rustup.rs -sSf | sh
```

#### Windows

official website: https://www.rust-lang.org/tools/install

### Then, install wasm-pack

#### Windows 需要额外操作

- **可能需要下载 [strawberryperl](https://strawberryperl.com/)**
- 使用 powershell 执行命令
- 开启脚本执行权限
  ```powershell
  Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
  ```

#### 安装 wasm-pack

```powershell
cargo install wasm-pack
```
npm package: @powerfulyang/umi-openapi
Description: [![GitHub Repo stars](https://img.shields.io/github/stars/chenshuai2144/openapi2typescript?style=social)](https://github.com/chenshuai2144/openapi2typescript) [![npm (scoped)](https://img.shields.io/npm/v/@umijs/openapi)](https://www.npmjs.com/package/@um
Author: chenshuai2144
Latest version: 1.8.6

## 介绍
[![GitHub Repo stars](https://img.shields.io/github/stars/chenshuai2144/openapi2typescript?style=social)](https://github.com/chenshuai2144/openapi2typescript)
[![npm (scoped)](https://img.shields.io/npm/v/@umijs/openapi)](https://www.npmjs.com/package/@umijs/openapi)
![GitHub tag (latest SemVer pre-release)](https://img.shields.io/github/v/tag/chenshuai2144/openapi2typescript?include_prereleases)

根据 [OpenApi3](https://swagger.io/blog/news/whats-new-in-openapi-3-0/) 文档生成 request 请求代码。

如果你使用 [umi](https://umijs.org) ,你可以使用[@umijs/plugin-openapi](https://www.npmjs.com/package/@umijs/plugin-openapi) 插件。
## 使用
```node
npm i --save-dev @umijs/openapi
```
在项目根目录新建 ```openapi.config.ts```
```ts
const { generateService } = require('@umijs/openapi')

generateService({
  schemaPath: 'http://petstore.swagger.io/v2/swagger.json',
  serversPath: './servers',
})

```
在 ```package.json``` 的 ```script``` 中添加 api: ```"openapi": "ts-node openapi.config.ts",```

生成api
```node
npm run openapi
```
## 参数
|  属性   | 必填  | 备注 | 类型 | 默认值 |
|  ----  | ----  |  ----  |  ----  | - |
| requestLibPath  | 否 | 自定义请求方法路径 | string | - |
| requestImportStatement  | 否 | 自定义请求方法表达式 | string | - |
| apiPrefix  | 否 | api 的前缀 | string | - |
| serversPath  | 否 | 生成的文件夹的路径 | string | - |
| schemaPath  | 否 | Swagger 2.0 或 OpenAPI 3.0 的地址 | string | - |
| projectName  | 否 | 项目名称 | string | - |
| namespace  | 否 | 命名空间名称 | string | API |
| mockFolder  | 否 | mock目录 | string | - |
| enumStyle  | 否 | 枚举样式 | string-literal \| enum | string-literal |
| nullable | 否 | 使用null代替可选 | boolean | false |
| dataFields | 否 | response中数据字段 | string[] | - |
npm package: @powerhome/eslint-config
Description: Provides eslint-config and Prettier formatting for Power Home Remodeling apps.
Latest version: 0.3.0

# @powerhome/eslint-config

Provides eslint-config and Prettier formatting for Power Home Remodeling apps.

## Installation

Add this line to your application's package.json:

```ruby
  "devDependencies": {
    ...
    "@powerhome/eslint-config": "0.1.0",
    ...
  }
```

And then yarn:

    $ yarn

## Usage

Assuming it's a typescript app, add an `extends` line to your `.eslintrc.json`:

```js
{
  ...
  extends: [
    ...
    "@powerhome",
  ],
  ...
}
```

## Flow type apps

For flow-based apps, replace `@powerhome` by `@powerhome/eslint-config/flow`. Note that usage of Flow at Power is not recommended, and all projects should migrate to TypeScript; this set of rules is provided only for transitionary purposes and will be removed in future releases.

## Prettier

Prettier takes code formatting decisions while ESlint cares about code quality measurements. Both tools were put together into the same package since they both handle code quality in JS.

To install Prettier rules into your application simply add the following line to your `package.json` and Power's standards for code formatting will be loaded when you run Prettier.

```json
"prettier": "@powerhome/eslint-config/prettier"
```

Prettier and ESlint rules might conflict sometimes. To find out rules that are conflicting you can run the following command line in your project:

```
yarn eslint-config-prettier path/to/main.js
```

That's a helper method created by the `eslint-config-prettier` package that points out which rules are conflicting.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/powerhome/power_linting.

## License

The package is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
npm package: @powerhouse-solutions/node-red-contrib-twinhub
Description: The official Node-RED package from Powerhouse Solutions GmbH
Author: Powerhouse Solutions GmbH
Latest version: 1.4.3

## node-red-contrib-twinhub

**TwinHub Node-RED Package** – The official Node-RED package from [Powerhouse Solutions GmbH](https://www.powerhouse-solutions.de/).

## Installation
Install via npm:
1. open cmd
2. go to your Node-Red dictionary ( cd C:\Users\Username\\.node-red )  
3. npm install @powerhouse-solutions/node-red-contrib-twinhub

Or install directly in Node-RED:
1. Open Node-RED
2. Go to Manage Palette
3. Search for twinhub
4. Click Install 

## Nodes in this package
This package includes several nodes:

-   **db-functions** → Provides CRUD operations for managing RuleBox table.
-   **get-bearer-token** → Retrieves and caches a Bearer token for authentication.
-   **store-io-data** → Receives IO-Box signals and writes them to the local RuleBox database.
-   **post-progress** → Sends data and enriches IO-Box data with additional metadata from an API.
-   **get-new-data** → Fetches unsent data, either unsent to the Cloud or to MES.
-   **mes-upload-data** → Uploads unsent data, gathered from "get-new-data" to the MES.
-   **cloud-upload-data** → Uploads unsent data, gathered from "get-new-data" to the Cloud.
-   **read-twhinhub-box** → Retrieves data from old IO-boxes, does not work with W&T-boxes.
-   **post-energy-realtime** → Sends the current power-consumtion to the cloud.
-   **post-progresses** → Sends data taken from the global-array and updates the diff if successfull.
-   **get-and-fill-iodata** → Recieves the current list of all workplace-stations or enriches the diff of the right workplace-station.
-   **get-bearer-token-config** → Config-Node wich allows to create and save a configuration for the "get-bearer-token" node.

*more detailed explanation of each node and its functionality can be found in German in the help section of Node-RED.*

## Usage
Once installed, the nodes will appear in the TwinHub category in Node-RED.
Drag and drop them into your flow and configure their settings.

## Powerhouse Solutions GmbH
For more information, visit [Powerhouse Solutions GmbH](https://www.powerhouse-solutions.de/)
npm package: @powerhouse-technology/pms-js-sdk
Description: Powerhouse PMS JavaScript/TypeScript SDK
Author: Powerhouse PMS
Latest version: 2.1.0

# @powerhouse-technology/pms-js-sdk

TypeScript/JavaScript SDK for the Powerhouse Property Management System (PMS) API.

## Installation

```bash
npm install @powerhouse-technology/pms-js-sdk
```

## Usage

```typescript
import { newPmsClient } from '@powerhouse-technology/pms-js-sdk';
import type { Property, Booking } from '@powerhouse-technology/pms-js-sdk';

// Initialize the client
const pms = newPmsClient({
    baseURL: 'https://api.example.com',
    tokenProvider: async () => 'your-auth-token',
});

// Query properties
const properties = await pms.property.query({
    filter: { status: 'active' },
    page: 1,
    perPage: 20,
});

// Fetch a single booking
const booking = await pms.booking.fetch({ id: 123 });

// Create a new resource
const newBooking = await pms.booking.create({
    propertyId: 1,
    checkIn: '2024-01-15',
    checkOut: '2024-01-20',
});
```

## Available Clients

The SDK provides typed clients for all PMS resources:

- `user`, `tenant`, `account`, `profile`
- `property`, `propertyRoom`, `amenity`, `location`, `region`
- `booking`, `bookingGuest`, `bookingProduct`
- `payment`, `paymentGateway`, `creditCard`, `stripe`
- `channel`, `channelProperty`, `integration`
- `availability`, `discount`, `paymentSchedule`
- And many more...

See `dist/cjs/index.d.ts` for the complete list of available clients and their methods.

## License

MIT