open-index/open-npm huggingface dataset:
npm package: @kingsword/dmpc
Description: Multi-platform node package bundle to a package.json.
Latest version: 0.0.6

# dmpc

Multi-platform node package bundle to a package.json.

### install
```ts
### npm mode
npm i -g @kingsword/dmpc

### yarn mode
yarn global add @kingsword/dmpc
```

### usage
```shell
0. @kingsword/dmpc new <name>
1. @kingsword/dmpc build [-c, --config #0]
2. @kingsword/dmpc create [-v, --version #0] <name>
3. @kingsword/dmpc -h
4. @kingsword/dmpc -v
```
npm package: @kingsword/lint-config
Description: Reusable oxlint presets + self-owned ESLint-compatible JS plugin rules.
Author: Kingsword kingsword09
Latest version: 0.2.2

# @kingsword/lint-config

可复用的 `oxlint` 配置与 `@kingsword/*` 规则插件。

> 要求：`oxlint >= 1.50.0`

## 安装

```bash
npm i -D oxlint @kingsword/lint-config
```

## 推荐用法（CLI 生成）

```bash
# 生成 oxlint.config.ts（默认 lib + none + recommended）
npx xlint init lib

# 更严格示例
npx xlint init fullstack --test vitest --level strict
```

生成后执行：

```bash
npx oxlint .
```

## 手写配置

```ts
import { defineConfig } from "oxlint";
import { oxlint } from "@kingsword/lint-config/config";

export default defineConfig(
  oxlint({
    profile: "lib",
    test: "none",
    level: "recommended",
  }),
);
```

## 参数说明

- `profile`: `base | lib | react | backend | fullstack`
- `test`: `none | vitest`
- `level`: `recommended | strict`

`oxlint()` 无参数时，默认使用最严格推荐档（`fullstack-vitest-strict`）。

## 1.50 升级重点

- `vitest-strict` 默认启用 `vitest/prefer-import-in-mock`
- `vitest-strict` 默认启用 `no-use-before-define`
- `vitest-strict` 默认启用 `no-shadow`
- `vitest-strict` 默认启用 `no-unmodified-loop-condition`
- `vitest-strict` 默认启用 `unicorn/prefer-module`
- `vitest-strict` 默认启用 `node/no-path-concat`
- `vitest-strict` 不默认强制 Vitest globals/import 二选一（减少与不同项目测试风格的冲突）
- `base` 默认启用 `typescript/consistent-type-assertions`
- `frontend` 默认启用 `unicorn/relative-url-style`
- `vitest` 默认启用 `vitest/prefer-expect-type-of`
- `oxlint.config.ts` 的 `extends` 需使用“配置对象数组”，不再支持字符串路径

## 规则文档

- `docs/rules.zh-CN.md`
- 文档已包含：自研 `@kingsword/*` 全部规则、内置规则（含 `off` 项）与 overrides 的完整中文说明

## 开发验证夹具（Smoke Fixtures）

仓库内用于 `lint:*` 脚本的最小验证样例位于：`test/fixtures/smoke`。

- `base`: `test/fixtures/smoke/base/baseCase.ts`
- `recommended`: `test/fixtures/smoke/recommended/recommendedCase.ts`
- `frontend`: `test/fixtures/smoke/frontend/frontendCase.ts`
- `backend`: `test/fixtures/smoke/backend/backendCase.ts`
- `fullstack`: `test/fixtures/smoke/fullstack/fullstackCase.ts`
- `vitest` / `vitest:strict`: `test/fixtures/smoke/vitest/vitestCase.ts`

说明：

- 这些夹具是“应当通过”的 smoke 用例，保持最小、稳定、可读。
- 规则触发/报错类断言放在 `test/plugin.test.js` 的场景测试中维护。
npm package: @kingtimer12/qrcode-rs
Description: A simple library that generates a qrcode in javascript
Author: KingTimer12
Latest version: 0.1.9

# qrcode-rs

![CI](https://github.com/napi-rs/package-template/workflows/CI/badge.svg)

Um gerador de QR Code de alta performance escrito em Rust com bindings para Node.js usando NAPI-RS.

## Características

- **Alta Performance**: Escrito em Rust para máxima velocidade e eficiência
- **Zero Dependências Nativas**: Não requer ferramentas de build como gcc/llvm ou node-gyp
- **Cross-Platform**: Suporte nativo para Windows, macOS, Linux e FreeBSD
- **Compatibilidade N-API**: Funciona com Node.js 12.22.0+
- **Saída em Buffer**: Retorna imagens PNG diretamente como Node.js Buffer

## Instalação

```bash
npm install @kingtimer12/qrcode-rs
# ou
yarn add @kingtimer12/qrcode-rs
```

## Uso

```javascript
const { generateQRCode } = require('@kingtimer12/qrcode-rs')
const fs = require('fs')

// Gerar QR Code
const qrCodeBuffer = generateQRCode('https://github.com')

// Salvar como arquivo PNG
fs.writeFileSync('qrcode.png', qrCodeBuffer)

// Ou usar diretamente em uma resposta HTTP
app.get('/qrcode', (req, res) => {
  const data = req.query.data || 'Hello World'
  const qrCode = generateQRCode(data)

  res.setHeader('Content-Type', 'image/png')
  res.send(qrCode)
})
```

### TypeScript

O pacote inclui definições de tipos TypeScript:

```typescript
import { generateQRCode } from 'qrcode-rs'

const qrCode: Buffer = generateQRCode('https://example.com')
```

## API

### `generateQRCode(data: string): Buffer`

Gera um QR Code a partir de uma string.

**Parâmetros:**

- `data` (string): O texto ou URL para codificar no QR Code

**Retorna:**

- `Buffer`: Imagem PNG do QR Code como Buffer do Node.js

**Exemplo:**

```javascript
const qrCode = generateQRCode('Hello, World!')
// Retorna um Buffer contendo a imagem PNG
```

## Plataformas Suportadas

Este pacote fornece binários pré-compilados para:

- **Windows**: x86_64, ARM64
- **macOS**: x86_64 (Intel), ARM64 (Apple Silicon)
- **Linux**: x86_64 (glibc), x86_64 (musl), ARM64 (glibc), ARM64 (musl)
- **FreeBSD**: x86_64

## Requisitos

- Node.js >= 12.22.0 (qualquer versão com suporte a N-API)

## Desenvolvimento

### Pré-requisitos

- Rust (versão mais recente)
- Node.js 10+
- Yarn 1.x

### Build Local

```bash
# Instalar dependências
yarn install

# Build em modo debug
yarn build:debug

# Build em modo release
yarn build

# Executar testes
yarn test

# Executar benchmark
yarn bench
```

### Estrutura do Projeto

- `src/lib.rs` - Código Rust principal
- `index.d.ts` - Definições TypeScript (gerado automaticamente)
- `index.js` - Wrapper JavaScript (gerado automaticamente)
- `__test__/` - Testes com AVA
- `benchmark/` - Benchmarks de performance

## Licença

MIT

## Autor

AaronKing <aaron.cmfor@gmail.com>

## Tecnologias

- [Rust](https://www.rust-lang.org/) - Linguagem de programação de sistemas
- [NAPI-RS](https://napi.rs/) - Framework para criar addons nativos do Node.js
- [qrcode](https://crates.io/crates/qrcode) - Biblioteca Rust para geração de QR Code
- [image](https://crates.io/crates/image) - Biblioteca Rust para processamento de imagens
npm package: @kingtimer12/qrcode-rs-freebsd-x64
Description: A simple library that generates a qrcode in javascript
Author: KingTimer12
Latest version: 0.1.9

# `@kingtimer12/qrcode-rs-freebsd-x64`

This is the **x86_64-unknown-freebsd** binary for `@kingtimer12/qrcode-rs`
npm package: @kingtimer12/qrcode-rs-linux-arm64-gnu
Description: A simple library that generates a qrcode in javascript
Author: KingTimer12
Latest version: 0.1.9

# `@kingtimer12/qrcode-rs-linux-arm64-gnu`

This is the **aarch64-unknown-linux-gnu** binary for `@kingtimer12/qrcode-rs`
npm package: @kingtimer12/qrcode-rs-linux-arm64-musl
Description: A simple library that generates a qrcode in javascript
Author: KingTimer12
Latest version: 0.1.9

# `@kingtimer12/qrcode-rs-linux-arm64-musl`

This is the **aarch64-unknown-linux-musl** binary for `@kingtimer12/qrcode-rs`
npm package: @kingtimer12/qrcode-rs-linux-x64-gnu
Description: A simple library that generates a qrcode in javascript
Author: KingTimer12
Latest version: 0.1.9

# `@kingtimer12/qrcode-rs-linux-x64-gnu`

This is the **x86_64-unknown-linux-gnu** binary for `@kingtimer12/qrcode-rs`
npm package: @kingtimer12/qrcode-rs-linux-x64-musl
Description: A simple library that generates a qrcode in javascript
Author: KingTimer12
Latest version: 0.1.9

# `@kingtimer12/qrcode-rs-linux-x64-musl`

This is the **x86_64-unknown-linux-musl** binary for `@kingtimer12/qrcode-rs`
npm package: @kingtimer12/qrcode-rs-win32-arm64-msvc
Description: A simple library that generates a qrcode in javascript
Author: KingTimer12
Latest version: 0.1.9

# `@kingtimer12/qrcode-rs-win32-arm64-msvc`

This is the **aarch64-pc-windows-msvc** binary for `@kingtimer12/qrcode-rs`
npm package: @kingtimer12/qrcode-rs-win32-x64-msvc
Description: A simple library that generates a qrcode in javascript
Author: KingTimer12
Latest version: 0.1.9

# `@kingtimer12/qrcode-rs-win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `@kingtimer12/qrcode-rs`