open-index/open-npm huggingface dataset:
npm package: @nbsh/buffer-trim
Description: Removes whitespace and line-terminator characters from buffer edges
Author: Ran Cohen
Latest version: 5.0.0-next.1

# `buffer-trim`

> Removes whitespace and line-terminator characters from buffer edges

## Installation

```bash
$ npm i -S @nbsh/buffer-trim
$ yarn add @nbsh/buffer-trim
```

## Usage

```js
import { EOL } from 'os';
import { trimBufferStart, trimBufferEnd, trimBuffer } from '@nbsh/buffer-trim';

const trimmable = Buffer.from(` trimme${EOL}`); // Buffer(8) [32, 116, 114, 105, 109, 109, 101, 10]
trimBufferStart(trimmable); // Buffer(7) [116, 114, 105, 109, 109, 101, 10]
trimBufferEnd(trimmable); // Buffer(7) [32, 116, 114, 105, 109, 109, 101]
trimBuffer(trimmable); // Buffer(6) [116, 114, 105, 109, 109, 101]
```

## API

> Whitespace in this context is all the whitespace characters (space, tab, no-break space, etc.) and all the line terminator characters (LF, CR, etc.).

### `trimBufferStart(buffer: Buffer): Buffer`

The `trimBufferStart()` method return the buffer stripped of whitespace from its left end. `trimBufferStart()` do not affect the value of the buffer itself.
Exactly what [String.prototype.trimStart()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart) does, just for buffers.

### `trimBufferEnd(buffer: Buffer): Buffer`

The `trimBufferEnd()` method return the buffer stripped of whitespace from its right end. `trimBufferEnd()` do not affect the value of the buffer itself.
Exactly what [String.prototype.trimEnd()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimEnd) does, just for buffers.

### `trimBuffer(buffer: Buffer): Buffer`

The `trimBuffer()` method return the buffer stripped of whitespace both ends. `trimBuffer()` do not affect the value of the buffer itself.
Exactly what [String.prototype.trim()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim) does, just for buffers.
npm package: @nbsh/to-type
Description: Fixes JavaScript typeof operator using Symbol.toStringTag
Author: Ran Cohen
Latest version: 5.0.0-next.1

# `to-type`

> Fixes JavaScript typeof operator using Symbol.toStringTag

## Installation

```bash
$ npm i -S @nbsh/to-type
$ yarn add @nbsh/to-type
```

## Usage

```js
import { strictEqual } from 'assert';
import { toType, Types } from '@nbsh/to-type';

toType(4); // "number"
toType('abc'); // "string"
toType(true); // "boolean"
toType({ a: 4 }); // "object"
toType([1, 2, 3]); // "array"
toType(new Date()); // "date"
toType(/a-z/); // "regexp"
toType(undefined); // "undefined"
toType(null); // "null"
toType(new TypeError()); // "error"
toType(() => {}); // "function"

strictEqual(toType(4), Types.Number); // true
strictEqual(toType('abc'), Types.String); // true
```

## API

### `toType(object: unknown): string`

The `toType()` method return the default string description of the object it receive as argument. `toType()` do not affect the object itself.
See [Symbol.toStringTag](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag).

### `Types: enum`

The `Types` enum represent the [well-known](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures) string descriptions that `toType()` method return. **Note**, implementing a class that overrides the toStringTab symbol will not make its value available within this enum.
npm package: @nbsh/writables
Description: Useful implementations for writable stream
Author: Ran Cohen
Latest version: 5.0.0-next.1

# `writables`

> Useful implementations for writable stream

## Installation

```bash
$ npm i -S @nbsh/writables
$ yarn add @nbsh/writables
```

## Usage

```js
import { createReadStream } from 'fs';
import { once } from 'events';
import { AccumulateStream, RotateStream, DomainStream, DOMAIN_EVENT, ROTATE_EVENT } from '@nbsh/writables';

(async (): void => {
  // file.txt: (2kb)
  // @nbsh/writables
  // streams are awesome. streams are awesome.
  // streams are awesome. streams are awesome.
  // ... ...
  // @nbsh/writables
  const readable = createReadStream('file.txt');

  const acc = new AccumulateStream();
  const rot = new RotateStream({ size: '1kb', count: 2 });
  const dom = new DomainStream('@nbsh/writables');

  readable.pipe(acc);
  readable.pipe(rot);
  readable.pipe(dom);

  // will be emitted every 1kb and 2 writes
  rot.on(ROTATE_EVENT, () => console.log(rot.getContent().toString()));

  // will be emitted when '@nbsh/writables' written for the second time
  await once(dom, DOMAIN_EVENT);

  console.log(acc.getContent().toString());
})();
```

## [TBD]: API
npm package: @nbtca/prompt
Description: NBTCA Prompt - Minimalist CLI tool for NingboTech Computer Association
Author: m1ngsama
Latest version: 1.0.24

# NBTCA Prompt

Terminal-based information system for NingboTech Computer Association.

[![npm version](https://img.shields.io/npm/v/@nbtca/prompt)](https://www.npmjs.com/package/@nbtca/prompt)
[![License](https://img.shields.io/npm/l/@nbtca/prompt)](LICENSE)

## Install

```bash
npm install -g @nbtca/prompt
```

Or run directly:

```bash
npx @nbtca/prompt
```

## Documentation

Project documentation has been moved to the GitHub Wiki.

- [Home](https://github.com/nbtca/Prompt/wiki)
- [Getting Started](https://github.com/nbtca/Prompt/wiki/Getting-Started)
- [Development Guide](https://github.com/nbtca/Prompt/wiki/Development-Guide)
- [Terminal UX](https://github.com/nbtca/Prompt/wiki/Terminal-UX)
- [Release Notes](https://github.com/nbtca/Prompt/wiki/Release-Notes)
- [Features](https://github.com/nbtca/Prompt/wiki/Features)
- [Terminal Compatibility](https://github.com/nbtca/Prompt/wiki/Terminal-Compatibility)
- [FAQ](https://github.com/nbtca/Prompt/wiki/FAQ)

## Requirements

- Node.js >= 20.12.0

## License

MIT

## Links

- Website: https://nbtca.space
- GitHub: https://github.com/nbtca
- NPM: https://www.npmjs.com/package/@nbtca/prompt
npm package: @nbtca/welcome
Description: Enhanced welcome tool for NingboTech Computer Association with rich TUI experience
Author: m1ngsama
Latest version: 2.3.1

# NBTCA Welcome v2.3.0

![Demo](assets/Prompt_demo.gif)

> 为浙大宁波理工学院计算机协会打造的专业欢迎工具

## ✨ 新功能特性

### 🎨 增强的视觉效果

- **多种动画效果**: 彩虹、波浪、脉冲、打字机等动画
- **渐变文字**: 支持多种颜色渐变效果
- **加载动画**: 自定义加载动画和进度条
- **系统信息显示**: 实时显示系统状态和性能

### 🚀 丰富的交互体验

- **分类菜单**: 官方网站、技术支持、学习资源、社区交流等
- **子菜单系统**: 每个分类都有详细的子菜单
- **确认对话框**: 重要操作前的确认提示
- **输入提示**: 支持文本和密码输入

### 📊 系统监控

- **实时系统信息**: CPU、内存、平台信息
- **网络状态**: 连接状态和服务可用性
- **性能指标**: 系统性能评估和建议

### 🔧 技术支持服务

- **电脑维修**: 硬件和软件问题解决
- **网络配置**: 网络连接和配置服务
- **移动设备**: 手机和平板电脑支持
- **服务预约**: 在线预约系统

## 🚀 快速开始

### 安装

```bash
npm install @nbtca/welcome
```

### 使用

```bash
# 推荐方式
npx @nbtca/welcome

# 或本地运行
npm start

# 开发模式（自动重启）
npm run dev
```

## 📁 项目结构

```
.
├── bin/
│   └── nbtca-welcome.js          # CLI 入口点
├── src/
│   ├── index.js                  # 主入口文件
│   ├── main.js                   # 核心应用逻辑
│   ├── logo/                     # ASCII Logo 相关
│   │   ├── printLogo.js
│   │   └── logo.txt             # 终端图像数据
│   ├── gradient/                 # 渐变文字效果
│   │   └── printGradientText.js
│   ├── animation/                # 动画效果
│   │   ├── printLolcatAnimated.js
│   │   └── loadingAnimation.js
│   ├── ui/                       # 用户界面组件
│   │   ├── welcomeBanner.js
│   │   └── systemInfo.js
│   └── menu/                     # 交互菜单
│       ├── showMainMenu.js
│       ├── handleUserAction.js
│       └── subMenu.js
├── assets/
│   └── Prompt_demo.gif          # 演示动画
└── package.json
```

## 🎯 主要功能

### 🌐 官方网站服务

- 🏠 官方网站主页
- 📰 新闻资讯
- 📅 活动日历
- 👥 团队介绍
- 📞 联系我们

### 🔧 技术支持服务

- 💻 电脑硬件维修
- 🔧 软件问题解决
- 🌐 网络配置服务
- 📱 移动设备支持
- 🛠️ 硬件升级咨询
- 📋 服务预约

### 📚 学习资源中心

- 📚 技术文档
- 🎥 视频教程
- 💡 编程学习
- 🎨 设计资源
- 🔬 学术研究
- 📖 推荐书籍

### 👥 社区交流

- 💬 技术交流群
- 📢 官方QQ群
- 🐙 GitHub组织
- 📱 微信公众号
- 🎯 项目合作
- 🏆 竞赛信息

### ⚙️ 系统设置

- 🎨 主题设置
- 🌐 网络配置
- 📊 性能监控
- 🔔 通知设置
- 🔄 检查更新

## 🛠️ 技术栈

- **Node.js** (ES Modules)
- **inquirer** - 交互式命令行界面
- **chalk** - 终端颜色输出
- **isomorphic-lolcat** - 彩虹色动画效果
- **open** - 打开系统默认浏览器
- **boxen** - 创建边框效果

## 🎨 动画效果

### 彩虹动画

```javascript
await printLolcatAnimated("Hello World!", {
  duration: 2000,
  fps: 30,
  effect: "rainbow",
});
```

### 波浪动画

```javascript
await printLolcatAnimated("Hello World!", {
  effect: "wave",
});
```

### 脉冲动画

```javascript
await printLolcatAnimated("Hello World!", {
  effect: "pulse",
});
```

### 打字机效果

```javascript
await printLolcatAnimated("Hello World!", {
  effect: "typewriter",
});
```

## 📊 系统要求

- **Node.js**: >= 16.0.0
- **操作系统**: Windows, macOS, Linux
- **终端**: 支持 ANSI 转义序列的终端

## 🔧 开发

### 安装依赖

```bash
npm install
```

### 运行开发模式

```bash
npm run dev
```

### 构建

```bash
npm run build
```

## 📝 更新日志

### v2.3.0

- ✨ 新增多种动画效果
- 🎨 增强的渐变文字功能
- 📊 实时系统信息显示
- 🚀 分类菜单系统
- 🔧 丰富的技术支持服务
- 📚 学习资源中心
- 👥 社区交流功能
- ⚙️ 系统设置选项

### v2.2.0

- 🎨 基础动画效果
- 🌐 官方网站访问
- 🔧 维修服务

## 🤝 贡献

欢迎提交 Issue 和 Pull Request！

## 📄 许可证

MIT License

## 📞 联系我们

- 🌐 官网: https://nbtca.space/
- 📧 邮箱: contact@m1ng.space
- 🐙 GitHub: https://github.com/nbtca

---
npm package: @nbudy/paymac-hub-mcp
Description: MCP server for PayMac Hub functionality - Pure proxy layer for AI agents
Latest version: 1.2.1

# PayMac Hub MCP Tools

A Model Context Protocol (MCP) server that exposes PayMac Hub functionality as MCP tools for AI agents. This server acts as a pure proxy layer between AI agents and the PayMac Hub hardware gateway.

## Getting started

Add the following config to your MCP client:

```json
{
  "mcpServers": {
    "paymac-hub-mcp": {
      "command": "npx",
      "args": ["-y", "@nbudy/paymac-hub-mcp@latest"]
    }
  }
}
```

> Note
> 
> Using `@nbudy/paymac-hub-mcp@latest` ensures that your MCP client will always use the latest version.

## MCP Client configuration

### Claude Code

Use the Claude Code CLI to add the Chrome DevTools MCP server (guide):

`claude mcp add paymac-hub-mcp npx @nbudy/paymac-hub-mcp@latest`


## MCP Tools

The server exposes the following MCP tools:

1. `detect_device_list` - Discover devices using device list
2. `detect_device_range` - Discover devices using range pattern
3. `read_device_sn` - Read device serial number
4. `check_device_empty` - Check if device is empty
5. `distribute_device` - Distribute device with key
6. `unlock_device` - Unlock device with key
7. `generate_key_pair` - Generate account key pair
8. `write_account_key` - Write account key to device
9. `delete_account_key` - Delete account key from device
10. `sign_data` - Sign data with account key
11. `get_serial_settings` - Read serial communication settings
12. `update_serial_settings` - Update serial communication settings
13. `get_server_info` - Get PayMac Hub server information

## License

MIT