open-index/open-npm huggingface dataset:
npm package: @hehehai/d2-crud
Description: A d2-projects project custom
Author: hehehai
Latest version: 2.1.0

![npm](https://img.shields.io/npm/v/@d2-projects/d2-crud.svg)
![npm](https://img.shields.io/npm/dt/@d2-projects/d2-crud.svg)
![GitHub license](https://img.shields.io/github/license/d2-projects/d2-crud.svg)


## 介绍

[D2-Crud](https://github.com/d2-projects/d2-crud)是一套基于[Vue.js 2.2.0+](https://cn.vuejs.org/)和[Element UI 2.0.0+](http://element-cn.eleme.io/#/zh-CN)的表格组件。`D2-Crud` 将 `Element` 的功能进行了封装，并增加了表格的增删改查、数据校验、表格内编辑等常用的功能。大部分功能可由配置 `json` 实现，在实现并扩展了 `Element` 表格组件功能的同时，降低了开发难度，减少了代码量，大大简化了开发流程。


## 文档和示例

文档：<https://d2.pub/zh/doc/d2-crud-v2>
示例：<https://d2.pub/d2-admin/preview/#/demo/d2-crud/index>

## 功能

- 继承了 Element 中表格所有功能
- 新增表格数据
- 修改表格数据
- 删除表格数据
- 使用 Element 中的组件渲染表格内容和表单内容
- 表单校验
- 表格内编辑
- 渲染自定义组件

## 安装

使用npm
``` bash
npm i element-ui @d2-projects/d2-crud -S
```

使用yarn
``` bash
yarn add element-ui @d2-projects/d2-crud
```

## 在项目中使用

在`main.js`中写入以下内容：

``` js
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import D2Crud from '@d2-projects/d2-crud'

Vue.use(ElementUI)
Vue.use(D2Crud)

new Vue({
  el: '#app',
  render: h => h(App)
})
```

之后就可以在项目中使用 `D2-Crud` 了。
npm package: @hehehai/port-audit
Description: A TUI tool for managing TCP listening ports on macOS.
Latest version: 0.1.10

# port-audit

[![CI](https://github.com/hehehai/port-audit/actions/workflows/ci.yml/badge.svg)](https://github.com/hehehai/port-audit/actions/workflows/ci.yml)

A TUI tool for managing TCP listening ports on macOS.

## Features

- List all TCP listening ports
- Real-time refresh (every 2 seconds)
- Search filter (by port number or process name)
- Kill processes (SIGTERM → SIGKILL)
- Tokyo Night theme

## Requirements

- [Bun](https://bun.sh) runtime (development only)

## Installation

Homebrew:

```bash
brew install hehehai/tap/port-audit
```

No Bun runtime is required for the prebuilt binary.

npm:

```bash
npm i -g @hehehai/port-audit
```

macOS only. The npm package ships a prebuilt binary.

npx:

```bash
npx portaudit
```

GitHub Packages:

```bash
npm config set @hehehai:registry https://npm.pkg.github.com
npm i -g @hehehai/port-audit
```

GitHub Release (macOS binary):

```bash
curl -L -o port-audit.tar.gz https://github.com/hehehai/port-audit/releases/download/vX.Y.Z/port-audit-vX.Y.Z-macos.tar.gz
tar -xzf port-audit.tar.gz
./port --help
```

GitHub Release (Linux binary):

```bash
curl -L -o port-audit.tar.gz https://github.com/hehehai/port-audit/releases/download/vX.Y.Z/port-audit-vX.Y.Z-linux.tar.gz
tar -xzf port-audit.tar.gz
./port --help
```

GitHub Release (Windows binary):

```powershell
curl -L -o port-audit.tar.gz https://github.com/hehehai/port-audit/releases/download/vX.Y.Z/port-audit-vX.Y.Z-windows.tar.gz
tar -xzf port-audit.tar.gz
.\port.exe --help
```

From source:

```bash
bun install
bun link
```

One-line installer:

```bash
curl -fsSL https://raw.githubusercontent.com/hehehai/port-audit/main/scripts/install.sh | sh
```

## Usage

```bash
port
```

For development:

```bash
bun run dev:tui
```

Lint:

```bash
bun run lint
```

Test:

```bash
bun run test
```

## CLI

```bash
port --help
port list
port list -s 3001
port k 3001
```

Dev CLI:

```bash
bun run cli -- --help
```

## Keybindings

| Key | Action |
|---|---|
| `↑/k` | Move up |
| `↓/j` | Move down |
| `/` | Search |
| `esc` | Exit search |
| `x/Enter` | Kill process |
| `r` | Refresh |
| `q` | Quit |

## Tech Stack

- [OpenTUI](https://opentui.dev) - Terminal UI framework
- React 19
- Bun

## Release Automation

GitHub Actions publishes on tags like `v0.1.0`.
Releases include macOS/Linux/Windows binary tarballs used for direct installs.

Required secrets:

- `NPM_TOKEN` for npm publish
- `HOMEBREW_TOKEN` for Homebrew tap updates
- `HOMEBREW_TAP` (e.g. `hehehai/tap`)
- `HOMEBREW_FORMULA` (e.g. `port-audit`)
- `GITHUB_TOKEN` is used automatically for GitHub Packages publish