Skip to content
dsh.fish
Bundle

dsh-ip

IP 工具:校验/分类 IP 地址,计算 IPv4 CIDR 网段范围

Source
uckkk
License
MIT
Updated
Updated 20 days ago

Readme

# dsh-ip · IP 工具

校验/分类 IP 地址,计算 IPv4 CIDR 网段范围。纯 Node 实现。

## 提供的工具

| 工具 | 作用 |
|---|---|
| `ip_info` | 校验/分类 IP |
| `cidr_range` | CIDR → 网段范围 |

## 安装

```bash
dsh plugin add dsh-ip
```
安装后在 profile 的 `package.json` 的 `dsh.profile.bundles` 中加入 `"dsh-ip"`。

## 用法示例

```
10.0.0.0/24 的网段范围是多少
→ 调用 cidr_range(cidr="10.0.0.0/24")
```

## 安装

```bash
dsh plugin add github:uckkk/dsh-ip
```

> 安装即在本机运行第三方代码,请自行审阅源码。

## 安装

```bash
dsh plugin add github:uckkk/dsh-ip
```

## 使用

安装后在会话中调用该插件注册的工具即可。

## 许可

MIT

> 安装即在本机运行第三方代码,请自行审阅源码。

Install

dsh plugin --profile web add github:uckkk/dsh-ip

Profile: web

  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source