open-index/open-npm huggingface dataset:
npm package: @pickel-project/generator-node-lib
Description: Node library template generator.
Author: Himenon
Latest version: 0.0.3

# generator-node-lib

[![npm version](https://badgen.net/npm/v/@pickel-project/generator-node-lib)](https://npm.im/@pickel-project/generator-node-lib)
[![Build Status](https://travis-ci.com/pickel-project/generator-node-lib.svg?branch=master)](https://travis-ci.com/pickel-project/generator-node-lib)
[![codecov](https://codecov.io/gh/pickel-project/generator-node-lib/branch/master/graph/badge.svg)](https://codecov.io/gh/pickel-project/generator-node-lib)
[![dependencies Status](https://david-dm.org/pickel-project/generator-node-lib/status.svg)](https://david-dm.org/pickel-project/generator-node-lib)
[![devDependencies Status](https://david-dm.org/pickel-project/generator-node-lib/dev-status.svg)](https://david-dm.org/pickel-project/generator-node-lib?type=dev)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Node library template generator.

## Features

- typescript
- jest
- prettier
- husky
- eslint

## Usage

```sh
npm i -g yo @pickel-project/generator-node-lib
```

```sh
yo @pickel-project/node-lib
```

## Development

```sh
git clone https://github.com/pickel-project/generator-node-lib.git
yarn
yarn run build
yarn link
```

## License

MIT &copy; [Himenon](https://github.com/Himenon)
npm package: @pickel-project/generator-react-app
Description: React Application bootstrap.
Author: Himenon
Latest version: 0.2.3

# generator-react-app

[![npm version](https://badgen.net/npm/v/@pickel-project/generator-react-app)](https://npm.im/@pickel-project/generator-react-app)
[![Build Status](https://travis-ci.com/pickel-project/generator-react-app.svg?branch=master)](https://travis-ci.com/pickel-project/generator-react-app)
[![codecov](https://codecov.io/gh/pickel-project/generator-react-app/branch/master/graph/badge.svg)](https://codecov.io/gh/pickel-project/generator-react-app)
[![dependencies Status](https://david-dm.org/pickel-project/generator-react-app/status.svg)](https://david-dm.org/pickel-project/generator-react-app)
[![devDependencies Status](https://david-dm.org/pickel-project/generator-react-app/dev-status.svg)](https://david-dm.org/pickel-project/generator-react-app?type=dev)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Node library template generator.

## Features

[create-react-app](https://github.com/facebook/create-react-app) base yeoman generator.

* TypeScript + webpack
* Build system.

## Usage

```sh
npm i -g yo @pickel-project/generator-react-app

# yarn
yarn global add yo @pickel-project/generator-react-app
```

```sh
yo @pickel-project/react-app
```

## Development

```sh
git clone https://github.com/pickel-project/generator-react-app.git
yarn
yarn run build
yarn link
```

Check

```
yo @pickel-project/react-app
```

## License

MIT &copy; [Himenon](https://github.com/Himenon)
npm package: @pickerjs/asset-server-plugin
Description: ``` curl --location --request POST 'http://localhost:5001/upload' \ --form 'file=@"/Users/baisheng/Pictures/图层 1.png"' ```
Latest version: 0.2.6-beta.3

```
curl --location --request POST 'http://localhost:5001/upload' \
--form 'file=@"/Users/baisheng/Pictures/图层 1.png"'
```

[//]: # (--header 'Authorization: Bearer ' \)


# Picker CC AssetServerPlugin
`AssetServerPlugin` 服务提供本地文件上传管理，也将支持配置其他存储策略，例如：阿里云，并支持实时图像转换

# Example
## 转换模式

Asset 预览图像可以转换（调整尺寸 & 裁剪）在请求的 url 中添加查询参数：

`http://localhost:3000/assets/some-asset.jpg?w=500&h=300&mode=resize`

上面的 URL 将返回 宽 500px x 高 300px 的 `some-asset.jpg` 图像

### 预览模式

`mode` 参数可以是裁剪 `crop` 或调整尺寸 `resize`。详见  [ImageTransformMode]({{< relref "image-transform-mode" >}})

### 焦点

当裁剪图像时（`mode=crop`），将试图在裁剪帧中保持图像最 "有特点" 的区域。它是通过寻找图像中熵值最高的区域（图像中的热点区域）。然而，有时这个并不完美，大部分仍可能被删除掉。

所以焦点的作用就是可以通过传递`fpx`和`fpy`查询参数来手动指定，这些是标准化座标（介于0 和 1 之间的数字）,所以 `fpx=0&fpy=0` 对应于图像的左上角。

例如，假设有一个非常宽的景观图像，我们想要修剪成正方形。主题是一所最左边的房子图像。下面的查询将把它裁剪成以房子为中心的正方形

`http://localhost:3000/assets/landscape.jpg?w=150&h=150&mode=crop&fpx=0.2&fpy=0.7`

### 转换模式预设

预设可以定义允许使用单个预设名称，而不是指定的宽度、高度和模式。预设是通过 AssetServerOptions [presets property]({{< relref "asset-server-options" >}}#presets) 配置

例如，定义以下预置:

```ts
new AssetModule({
  // ...
  presets: [
    { name: 'my-preset', width: 85, height: 85, mode: 'crop' },
  ],
}),
```

意味着请求:

`http://localhost:3000/assets/some-asset.jpg?preset=my-preset`

等价于:

`http://localhost:3000/assets/some-asset.jpg?w=85&h=85&mode=crop`

AssetModule带有以下预置:

name | width | height | mode
-----|-------|--------|-----
tiny | 50px | 50px | crop
thumb | 150px | 150px | crop
small | 300px | 300px | resize
medium | 500px | 500px | resize
large | 800px | 800px | resize

### 缓存
默认情况下，AssetModule 将缓存每个转换的图像，所以转换只需要执行一次给定的配置。
关闭缓存可以使用 `?cache=false` 查询参数。
npm package: @pickerjs/common
Description: 这个包含有一组通用的实用函数和 TypeScript 类型，供多个 Picker 包使用。这个包不建议由最终用户的项目直接依赖，可能会有很多破坏性更新。
Latest version: 0.2.6-beta.3

# @pickerjs/common

这个包含有一组通用的实用函数和 TypeScript 类型，供多个 Picker 包使用。这个包不建议由最终用户的项目直接依赖，可能会有很多破坏性更新。
npm package: @pickerjs/create
Description: 用于快速搭建新的 Picker 应用程序的 CLI 工具。深受 [create-react-app](https://github.com/facebook/create-react-app) 启发。
Latest version: 0.2.6-beta.3

# Picker Create

用于快速搭建新的 Picker 应用程序的 CLI 工具。深受 [create-react-app](https://github.com/facebook/create-react-app) 启发。

## 使用

Picker Create 需要 [Node.js](https://nodejs.org/en/) v8.9.0+ 以上版本已安装。
创建一个新项目，可以选择以下方法之一：

### npx

```sh
npx @pickerjs/create my-app
```

*[npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher.*

### npm

```sh
npm init @pickerjs my-app
```

*`npm init <initializer>` is available in npm 6+*

### Pnpm

```sh
pnpm create @pickerjs my-app
```

### Yarn

```sh
yarn create @pickerjs my-app
```

*`yarn create` is available in Yarn 0.25+*

它会在当前文件夹中创建一个名为 `my-app` 的目录

## Options

### `--use-npm`

默认情况下，如果 Pnpm 可用，Picker Create 将尝试使用它来安装所有依赖项。你可以用 `--use-npm` 标志来增开不并强制它使用 npm。

### `--log-level`

您可以使用此标志控制在安装和设置过程中生成的输出信息。有效的选项是 `slient`、`info` 和 `verbose`。默认是 `slient`。

示例:

```sh 
npx @pickerjs/create my-app --log-level verbose
```
npm package: @pickjonathan/loopwatch-middleware
Description: Loopwatch Express middleware to intercept MCP tool call requests and enforce policies via Loopwatch Core.
Author: pickjonathan
Latest version: 1.0.13

# Loopwatch Express Middleware

This package provides an Express middleware to intercept MCP tool call requests and enforce policies via Loopwatch Core.

## Installation

```bash
cd loopwatch-middleware
npm install
```

## Usage

```ts
import express from 'express';
import { mcpInterceptor } from 'loopwatch-middleware';

const app = express();
app.use(express.json());

// Apply the middleware to your MCP tool invocation route
app.post('/tools',
  mcpInterceptor({ coreUrl: 'http://localhost:3000' }),
  (req, res) => {
    // Your tool execution logic
    res.json({ result: 'Tool executed' });
  }
);
```

## Options

- `coreUrl`: Base URL of the Loopwatch Core service (e.g., `http://localhost:3000`).
- `timeoutMs`: HTTP request timeout in milliseconds (default: 5000).

## Build

```bash
npm run build
```

## Development

```bash
npm run dev
```
npm package: @pickjunk/lookup
Description: Tiny full-text search engine.
Author: ChieveiT
Latest version: 1.1.4

# lookup

微型 nodejs 中文全文搜索引擎

### 快速启动

```javascript
import lookup from '@pickjunk/lookup';

const docs = [{
  id: '1',
  title: '百度真的不行',
  desc: '搜东西搜不出来'
}, {
  id: '2',
  title: '百度莆田',
  desc: '倒是很多结果'
}, {
  id: '3',
  title: '我是中国人',
  desc: '浓度过高'
}, {
  id: '4',
  title: '分词不在词库中',
  desc: '默认全分词，组合几个字也可以搜到'
}]

async function main() {
  // 实例化引擎
  const engine = lookup();
  // 加载词库
  await engine.dict('./dict.txt');

  // 进行文章索引
  for (let doc of docs) {
    engine.index(['title'], doc);
  }
  
  console.log(engine.search('baidu'));
  // [{
  //  id: '1',
  //  title: '百度真的不行',
  //  desc: '搜东西搜不出来'
  // }, {
  //  id: '2',
  //  title: '百度莆田',
  //  desc: '倒是很多结果'
  // }]
  
  console.log(engine.search('百度莆田'));
  // [{
  //  id: '2',
  //  title: '百度莆田',
  //  desc: '倒是很多结果'
  // }]
  
  console.log(engine.search('我'));
  // [{
  //  id: '3',
  //  title: '我是中国人',
  //  desc: '浓度过高'
  // }]
  
  console.log(engine.search('谷歌'));
  // []
  
  console.log(e.search('词在中'));
  // [{
  //  id: '4',
  //  title: '分词不在词库中',
  //  desc: '默认全分词，组合几个字也可以搜到'
  // }]
}

main();
```

```
// 词库 ./dict.txt
百度 2 brand|baidu 2 brand
baidu 莆田 2 desc
我是中国人 2 brand
```

### API

代码以 typescript 写就，具体 API 可看编辑器的补全提示

### 特性

* 支持同义词，在词库中同一行，用 | 分隔的多个词即为同义词
* 支持词组的同义词联想，例如词典中定义了 `百度` 和 `baidu` 为同义词，又定义了 `百度网站` 这个词，则引擎在构建字典树索引的时候，会自动生成一个 `baidu网站` 的词，作为 `百度网站` 的同义词
* 默认全分词，零词典也能进行文章索引
npm package: @pickk/eslint-plugin
Description: Pickk의 eslint custom rules 등을 정의합니다.
Latest version: 0.0.8

# Hello @pickk/eslint-plugin!

Pickk의 eslint custom rules 등을 정의합니다.

## Usage

#### Configuring Rules

- "off" or 0 - turn the rule off
- "warn" or 1 - turn the rule on as a warning (doesn't affect exit code)
- "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)

```js
// .eslintrc.js
module.exports = {
  // ...
  plugins: ["pickk"],
  rules: {
    "pickk/array-naming-convention": 1,
  },
};
```

## Supported Rules

| Name                          | Description                             | example            |
| ----------------------------- | --------------------------------------- | ------------------ |
| pickk/array-naming-convention | 배열 변수는 영문 복수형으로 명명합니다. | `const looks = []` |
npm package: @pickk/nest-sqs
Description: @pickk/nest-sqs is forked version of @ssut/nestjs-sqs
Author: byeonghoon yang
Latest version: 2.0.7

# @pickk/nest-sqs

@pickk/nest-sqs is forked version of @ssut/nestjs-sqs

This library internally uses [bbc/sqs-producer](https://github.com/bbc/sqs-producer) and [bbc/sqs-consumer](https://github.com/bbc/sqs-consumer), and implements some more useful features on top of the basic functionality given by them. this library is only for Amazon SQS.

## Installation

```shell script
$ npm i --save @pickk/nest-sqs
```

## Quick Start

### Register module

For use @pickk/nest-sqs You have to perform two methods to register a module. First you have to register Amazon SQS config options.

```ts
@Module({
  imports: [
    SqsModule.forRootAsync({
      imports:[ConfigModule],
      useFactory:(configService)=>{
        // return SQS.Types.ClientConfiguration & accountNumber(string type)
        return {...}
      },
      injects:[ConfigSerivce]
    }),
  ],
})
class AppModule {}
```

Second you have to register queues.

```ts
SqsModule.registerQueues([
  {
    name: 'queueName',
    type: 'ALL' // 'ALL'|'CONSUMER'|'PRODUCER'
    consumerOptions?: {},
    producerOptions?: {}
  },
  ...
]);
```

### Decorate methods

You need to decorate methods in your NestJS providers in order to have them be automatically attached as event handlers for incoming SQS messages:

```ts
@SqsProcess(/** name: */'queueName)
export class AppMessageHandler {
  @SqsMessageHandler(/** batch: */ false)
  public async handleMessage(message: AWS.SQS.Message) {}

  @SqsConsumerEventHandler(/** eventName: */ SqsConsumerEvent.PROCESSING_ERROR)
  public onProcessingError(error: Error, message: AWS.SQS.Message) {
    // report errors here
  }
}
```

One class can only handle one queue. so if you want to enroll dead letter queue, you have to make new class that handle dead letter queue

### Produce messages

```ts
export class AppService {
  public constructor(
    private readonly sqsService: SqsService,
  ) { }

  public async dispatchSomething() {
    await this.sqsService.send(/** name: */ 'queueName', {
      id: 'id',
      body: { ... },
      groupId: 'groupId',
      deduplicationId: 'deduplicationId',
      messageAttributes: { ... },
      delaySeconds: 0,
    });
  }
}
```

### Configuration

See [here](https://github.com/ybh1760/nest-sqs/blob/master/lib/sqs.types.ts), and note that we have same configuration as [bbc/sqs-consumer's](https://github.com/bbc/sqs-producer).
In most time you just need to specify both `name` and `queueUrl` at the minimum requirements.

## License

This project is licensed under the terms of the MIT license.
npm package: @pickk/pay
Description: PICKK Payment module
Author: greatSumini
Latest version: 1.5.2

<h1>
PICKK-PAY-SDK
  <a href="https://www.npmjs.com/package/@pickk/pay" target="_blank">
      <img src="https://img.shields.io/npm/v/@pickk/pay.svg" alt="NPM Version" />
  </a>
  <a href="https://www.npmjs.com/package/@pickk/pay" target="_blank">
      <img src="https://img.shields.io/npm/dm/@pickk/pay.svg" alt="NPM Downloads" />
  </a>
</h1>

## Requirements

- [nodejs](https://github.com/nodejs/node) >= 0.12.x
- not support browsers below IE 8

## Installation

```shell
$ npm install --save @pickk/pay
# or
$ yarn add @pickk/pay
```

## Usage

```tsx
import Pay from '@pickk/pay';

function PayScreen() {
  useEffect(() => {
    Pay.init('YOUR_PAY_SERVICE_URL');
  }, []);

  const handleClick = () => {
    Pay.request(data, callback);
  };

  return <button onClick={handleClick}>Place Order</button>;
}
```

## Author

- [Sumin Choi](https://sumini.dev)
npm package: @pickk/sens
Description: NCP SENS client for nodejs
Author: DEV-MUGLES
Latest version: 1.1.1

<p align="center">
  <a href="https://www.ncloud.com/product/applicationService/sens" target="blank"><img src="https://ssl.pstatic.net/static/ncp/img/ko/msg_logo_thumb.jpg" width="240" alt="ncloud Logo" /></a>
</p>

<p align="center">NCP SENS client for <a href="https://nodejs.org/" target="_blank">Node.js</a></p>

<p align="center">
    <a href="https://www.npmjs.com/package/@pickk/sens" target="_blank">
        <img src="https://img.shields.io/npm/v/@pickk/sens.svg" alt="NPM Version" />
    </a>
    <a href="https://www.npmjs.com/package/@pickk/sens" target="_blank">
        <img src="https://img.shields.io/bundlephobia/minzip/@pickk/sens" />
    </a>
<a href="https://github.com/DEV-MUGLES/sens/blob/master/LICENSE" target="_blank">
<img src="https://img.shields.io/npm/l/@pickk/sens.svg" alt="Package License" />
</a>
<a href="https://github.com/DEV-MUGLES/sens/actions/workflows/ci.yml">
<img src="https://github.com/DEV-MUGLES/sens/workflows/CI/badge.svg" />
</a>
<a href="https://www.npmjs.com/package/@pickk/sens" target="_blank">
<img src="https://img.shields.io/npm/dm/@pickk/sens.svg" alt="NPM Downloads" />
</a>
<a href="https://github.com/DEV-MUGLES/sens" target="_blank">
<img src="https://img.shields.io/github/stars/DEV-MUGLES/sens?style=social">
</a>

</p>

이 모듈은 Naver Cloud Platform에서 제공하는 Simple & Easy Notification Service(SENS) API를 [Node.js®](https://nodejs.org/)로 구현한 클라이언트입니다.<br>
NCP SENS의 개발 가이드는 [여기](https://guide.ncloud-docs.com/docs/ko/sens-sens-1-1)를 참고하시기 바랍니다.<br>

- 💙 Typescript support
- 📦 5kb mini library
- 👫 All browsers supported
- 🏃 Currently maintaining

## Requirements

- [nodejs](https://github.com/nodejs/node) >= 12

## Installation

```shell
$ npm install --save @pickk/sens
# or
$ yarn add @pickk/sens
```

## Features

- SMS
  1. send
- Alimtalk
  1. send

## Usage

```typescript
import { SmsClient } from '@pickk/sens';

const smsClient = new SmsClient({
  accessKey: 'your-access-key',
  smsServiceId: 'your-sms-service-id',
  smsSecretKey: 'your-sms-secret-key',
  callingNumber: 'your-calling-number',
});

await smsClient.send({
  to: ['01012341234', '01043214321'],
  content: 'Hello Sens!',
});
```

## Author

- [Sumin Choi](https://sumini.dev)

## Contribution

- 이 프로젝트는 누구나 참여 가능합니다.
- 버그나 개선점 및 의견 등은 [이슈](https://github.com/greatSumini/sens/issues) 및 [Pull Request](https://github.com/greatSumini/sens/compare)를 활용해주세요.

## Links

- NCP SENS 공식 사이트: https://www.ncloud.com/product/applicationService/sens
- NCP SENS 개발 가이드: https://guide.ncloud-docs.com/docs/ko/sens-sens-1-1

## License

This Package is [MIT licensed](https://github.com/DEV-MUGLES/sens/blob/master/LICENSE).

## References

- [node-sens](https://github.com/Bumkeyy/node-sens)