open-index/open-npm huggingface dataset:
npm package: @lemon-clown/common-util
Description: bunch of util function to develop ts project
Author: lemon-clown
Latest version: 0.0.2
Deprecated: Please use @guanghechen/file-helper and @guanghechen/option-helper instead.

this is a repository of basic utils to build (or assist to develop) typescript/javascript projects.


# usage

```shell
yarn add @lemon-clown/common-util
// or
npm install @lemon-clown/common-util
```


# view
    ├── fs-util
    │   ├── isFile        `check whether p is is a file-path or not.`
    │   └── isDirectory   `check whether p is is a directory-path or not.`
    |
    ├── option-util
    │   ├── coverBoolean
    │   ├── coverString
    │   ├── coverInteger
    │   ├── coverArray
    │   ├── convertStringToBoolean
    │   └── convertStringToInteger
    |
npm package: @lemon-clown/mocha-test-master
Description: test util with mocha
Author: lemon-clown
Latest version: 0.0.2

[![npm version](https://img.shields.io/npm/v/@lemon-clown/mocha-test-master.svg)](https://www.npmjs.com/package/@lemon-clown/mocha-test-master)
[![npm license](https://img.shields.io/npm/l/@lemon-clown/mocha-test-master.svg)](https://www.npmjs.com/package/@lemon-clown/mocha-test-master)

# introduction

  辅助测试的工具：扫描测试数据文件，生成 `mocha` 中可用的测试用例条目；

# usage

## install
  ```shell
  yarn add --dev @lemon-clown/mocha-test-master
  # or
  # npm install --save-dev @lemon-clown/mocha-test-master
  ```
npm package: @lemon-clown/ts-dev-util
Description: typescript develop utils
Author: lemon-clown
Latest version: 0.0.2

# usage

```shell
yarn add --dev @lemon-clown/ts-dev-util
// or
npm install --save-dev @lemon-clown/ts-dev-util
```

# example

## build single entry project
```typescript
// filepath: ./build.ts
import fs from 'fs-extra'
import path from 'path'
import { nodePackageScript } from '@lemon-clown/ts-dev-util'
import manifest from '../package.json'


const appDirectory = fs.realpathSync(process.cwd())
export const resolvePath = (...relativePath: string[]) => {
  return path.normalize(path.resolve(appDirectory, ...relativePath))
}


// paths Option.
// see [Paths](https://github.com/lemon-clown/node-ts-dev-util/blob/master/src/script/node-package/paths.ts) to get more information.
const paths: nodePackageScript.Paths = {
  name: manifest.name,
  // source file config
  source: {
    root: appDirectory,
    src: resolvePath('src'),
    main: resolvePath('src', 'index.ts'),
    tslint: resolvePath('tslint.json'),       // optional
    manifest: resolvePath('package.json'),
    tsconfig: resolvePath('tsconfig.json'),
    lockFile: resolvePath('yarn.lock'),
    nodeModules: [ resolvePath('node_modules') ],
  },
  // output config
  target: {
    root: resolvePath('lib'),
    typesRoot: resolvePath('types'),
    typesMain: resolvePath('types', 'index.d.ts'),
  },
  externals: nodePackageScript.calcExternals(manifest.dependencies),
  modulePrefix: 'ts-demo/lib',
  // to resolve path-alias which defined in tsconfig (compilerOptions.paths)
  alias: {
    '@': appDirectory,
  }
}

// run build script
// see [BuildOption](https://github.com/lemon-clown/node-ts-dev-util/blob/master/src/script/node-module/build.ts) to get more information
nodePackageScript.build({
  paths,
  fullMessage: true,
  // handle typescript paths here
  resolveModuleImport: params => {
    const { importedModuleId } = params
    if (/^\./.test(importedModuleId)) return null
    if (/^@\//.test(importedModuleId)) {
      return `lib/${ importedModuleId.substring(2) }`
    }
    return importedModuleId
  }
})
```
npm package: @lemon-design-xx/core
Description: Modern React component library built with TailwindCSS
Author: Lemon Design Team
Latest version: 1.4.2

# @lemon-design-xx/core

现代 React 组件库，基于 TailwindCSS 构建，提供常用 UI 组件与类型支持。

## 特性
- 仅使用 Tailwind 生成的样式文件，无 MUI 依赖
- 提供 `Button`、`Card`、`Input` 等核心组件
- 提供 ESM/CJS 构建与类型定义（`dist/index.esm.js`、`dist/index.js`、`dist/index.d.ts`）
- 支持按需引入与类型安全

## 安装

```bash
npm install @lemon-design-xx/core
# 或
pnpm add @lemon-design-xx/core
```

需要的 peer 依赖（确保你的项目已安装）：

- `react` >= 18
- `react-dom` >= 18


## 使用示例

```tsx
import React from 'react';
import { Button, Card, Input } from '@lemon-design-xx/core';
// 如果你的构建工具未自动合并 CSS，请显式引入样式
// import '@lemon-design-xx/core/dist/index.css';

export default function App() {
  return (
    <div>
      <Button variant="primary">点击我</Button>
      <Card title="卡片标题">卡片内容</Card>
      <Input label="输入框" placeholder="请输入内容" />
    </div>
  );
}
```

### Button
- 变体：`primary`、`secondary`、`outline`、`ghost`
- 尺寸：`sm`、`md`、`lg`
- 状态：`loading`、`disabled`

### Card
- 支持标题、副标题与操作区
- 可配置边框与阴影

### Input
- 基于原生 input
- 支持验证与错误提示、帮助文本

## 样式与 Tailwind

- 组件库内部使用 Tailwind 生成样式文件，并通过构建产物导出：`dist/index.css` / `dist/index.esm.css`
- 大多数 bundler 会自动处理依赖中的 CSS。如果你的构建未自动合并，请在应用入口显式引入：

```ts
import '@lemon-design-xx/core/dist/index.css';
```

## 构建与类型

- CJS：`dist/index.js`
- ESM：`dist/index.esm.js`
- 类型：`dist/index.d.ts`

## 仓库与反馈

- 仓库地址：https://github.com/lemon-design-xx/lemon-design
- 问题反馈：https://github.com/lemon-design-xx/lemon-design/issues

## 许可证

MIT
npm package: @lemon-nb/label-print
Description: PDA 标签打印通用组件：数据 + 格式 → 指令生成与发送，支持 BLE/自定义传输
Author: nhsoft.chenzh
Latest version: 0.1.0

# pda-label-print

PDA 标签打印通用组件：根据**数据源**和**格式配置**生成 CPCL/TSPL 指令，并通过可插拔的**传输适配器**（默认 BLE）发送到打印机。适用于多端复用（React Native PDA、Web、Node 服务等）。

## 安装

```bash
npm install pda-label-print
# 或
yarn add pda-label-print
```

## 设计要点

- **与业务解耦**：不依赖 Redux、不依赖具体 UI 库；格式配置与数据由调用方准备并传入。
- **传输可插拔**：默认提供 BLE 适配器（需注入 `BluetoothManager`）；可自定义适配器对接网络打印、本地服务等。
- **仅生成指令**：支持只生成指令字符串（`buildLabelCommand`），便于预览或走其他通道发送。

## 使用方式

### 1. 仅生成打印指令（不连接打印机）

```js
import { buildLabelCommand } from "pda-label-print";

const cmd = buildLabelCommand({
  template: {
    type: "cpcl",
    newReport: true,
    jasperReport: printStyle.jasperReport,
  },
  data: [
    {
      itemName: "商品A",
      lotNum: "20250101",
      userName: "张三",
      printTime: "2025-03-06 12:00:00",
    },
  ],
  formatMap: myFormatMap,
  copies: 1,
});
```

### 2. 在 React Native 中连接 BLE 并打印

应用启动时注入 BluetoothManager（可选）：

```js
import { setDefaultBleManager } from "pda-label-print";
setDefaultBleManager(global.BluetoothManager);
```

调用打印：

```js
import { printLabels } from "pda-label-print";

printLabels({
  connection: this.props.bleDevice,
  template: {
    type: "cpcl",
    newReport: !!printStyle.newReport,
    jasperReport: printStyle.jasperReport,
  },
  data: printList,
  formatMap: this.state.formatMap,
  copies: printNum,
  callbacks: {
    onPrinting: () => Toast.loading("打印中...", 0),
    onSuccess: () => Toast.success("打印成功", 1.5),
    onError: (msg) => Toast.fail(msg, 1.5),
  },
});
```

### 3. 自定义传输适配器

```js
const httpAdapter = {
  async isConnected() {
    return true;
  },
  async write(connection, rawCommand) {
    await fetch(connection.printServiceUrl, {
      method: "POST",
      body: rawCommand,
    });
  },
};
await printLabels({
  connection: { printServiceUrl: "https://your-print-service/send" },
  template: { type: "cpcl", jasperReport, newReport: true },
  data: printList,
  transport: httpAdapter,
  callbacks: { onSuccess: () => {}, onError: (m) => {} },
});
```

### 4. 默认模板（容器签 / 箱码）

```js
printLabels({
  connection: bleDevice,
  template: { type: "default_container" },
  data: { containerNumber: "CTN001" },
  transport: createBleAdapter(global.BluetoothManager),
  callbacks: { onSuccess: () => {}, onError: (m) => {} },
});
```

## API

- `buildLabelCommand(options)` 仅生成指令字符串。
- `printLabels(options)` 生成并发送，需 `connection` 与 `transport`（或已 `setDefaultBleManager`）。
- `setDefaultBleManager(bluetoothManager)` 设置默认 BLE。
- `createBleAdapter(bluetoothManager)` 创建 BLE 传输适配器。
- `getCPCL` / `getCPCLNewReport` / `getDefaultCPCL` / `getContainerDefaultCPCL` 可直接用于生成 CPCL。

### template 类型

- `type: 'cpcl'` + `jasperReport`，可选 `newReport: true`。
- `type: 'tspl'` + `jasperReport`（TSPL 打印机如 D45BT），可选 `tsplParams: { flip: true }`。
- `type: 'raw'` + `cpclOrTspl` 预生成字符串。
- `type: 'default_container'` / `type: 'default_box'` 使用内置默认格式。
- `type: 'default_receive_cpcl'` / `type: 'default_receive_tspl'` 收货任务标签无模板时的默认格式（data 需含 `printTag`、`itemName`）。

## License

MIT
npm package: @lemon-peel/unplugin-resolver
Description: Resolver for Lemon-Peel basic on unplugin-vue-components
Latest version: 0.0.0-alpha.6

<h1 align="center">Unplugin aresolver for <a href="https://www.npmjs.com/package/lemon-peel">Lemon-Peel</a></h1>

## Install

```shell
# npm
npm i @lemon-peel/unplugin-resolver -D
# yarn
yarn add @lemon-peel/unplugin-resolver --dev
# pnpm
pnpm add @lemon-peel/unplugin-resolver -D
```

## Usage

<details>
<summary>Vite</summary><br>

```ts
// vite.config.ts
import Components from 'unplugin-vue-components/vite';
import LomonPeelResolver from '@lemon-peel/unplugin-resolver';

export default defineConfig({
  plugins: [
    Components({
      resolvers: LomonPeelResolver({ /* options */ }),
    }),
  ],
});
```

<br></details>

<details>
<summary>Rollup</summary><br>

```ts
// rollup.config.js
import Components from 'unplugin-vue-components/rollup';
import LomonPeelResolver from '@lemon-peel/unplugin-resolver';

export default {
  plugins: [
    Components({
      resolvers: LomonPeelResolver({ /* options */ }),
    }),
  ],
};
```

<br></details>


<details>
<summary>Webpack</summary><br>

```ts
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-vue-components/webpack')({
      resolvers: LomonPeelResolver({ /* options */ }),
    }),
  ],
};
```

<br></details>

Licensed as [MIT](../LICENSE).
npm package: @lemon-sour/renovate-config
Description: ## Usage
Author: hisamatsu yoshiyuki
Latest version: 1.0.27

# 🍯 Renovate lemon-sour.js Configs 🥟

## Usage

Add this into `renovate.json`:

```json
{
  "extends": [
    "@lemon-sour"
  ]
}
```

## Useful Links

- [Configuration Options](https://renovatebot.com/docs/configuration-options)

## Author

- [github/hisasann](https://github.com/hisasann)
- [twitter/hisasann](https://twitter.com/hisasann)

## License

MIT © [hisasann (Yoshiyuki Hisamatsu)](https://github.com/hisasann)
npm package: @lemon/extract
Description: A utility tool designed to enable faster debugging of Typescript mono repos.
Author: James Gibson
Latest version: 0.2.11

# @lemon/extract

A utility tool designed to enable faster debugging of Typescript mono repos.

## Dev
```
# Terminal A
$ npm run webpack -- --watch

# Terminal B
$ DEBUG=@lemon/extract:* node ./bin/extract.js --help
```

## Running

The fastest way to utilize `@lemon/extract` is by running
```
$ npx @lemon/extract
```

## What the tool will do for you?

- Identifies all unique tsconfig naming conventions, displaying a count of each
- Counts and sumarizes the files included by a particular tsconfig

## Why this tool is useful?

- Misconfigured tsconfig files can slow down the cold start time of your tooling
- Finding misconfigured tsconfig's can be difficult if you have hundreds of them
- Misconfigured tsconfig files can cause Out Of Memory exceptions, usually in CI

## Assumptions

Typescript (tsc) must be globally available