npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

noah-uwb-cli

v0.1.0

Published

The official CLI for UWB Smart Control - manage smart devices from terminal

Readme

Noah UWB CLI

快速开始

环境要求

安装

git clone https://github.com/Dspecial/noah-uwb-cli.git
cd noah-uwb-cli
npm install
npm link

After npm link, the uwb command will be available globally in your terminal.

配置

# 配置API baseUrl
uwb setbaseurl

示例:

uwb setbaseurl 'http://localhost:8002/api/uwb'

命令参考

概览

uwb <command> [options]

Commands:
  setbaseurl <url>                  重置  ~/.uwb-cli/config.json 文件中的 baseUrl
  detail [options] <device_id>      UWB 设备信息查询
  control <device_id> <properties>  设置设备属性
  restart [options] <device_id>     重启设备

Global Options:
  -V, --version                     显示版本号
  -h, --help                        显示帮助信息

所有查询命令均支持 --json 选项,输出原始 JSON 数据,便于脚本集成。


uwb detail -- 设备详情

# uwb设备详情
uwb detail <device_id>

示例:

$ uwb detail 192.168.12.212:69

✔ 192.168.12.212:69 设备信息获取成功
  - 本地IP      :  192.168.12.212
  - 本地端口    :  03000
  - 上位机IP    :  192.168.12.111
  - 上位机端口  :  08888
  - 网关IP      :  192.168.12.1
  - 子网掩码    :  255.255.255.0
  - MAC地址     :  80.19.04.25.00.BD
  - UWB基站版本 :  3000.v1.3.58_v20240528
  - UWB基站信息 :  0001.30005100D4938FAC.0002.0001.192.168.012.212.03000.80.19.04.25.00.BD
  - UWB基站时间 :  2020.12.12.12.23.17

uwb control -- 设置设备

# 设置设备
uwb control <device_id> '<properties_json>'

示例:

# 设置设备的上位机ip
uwb control 192.168.12.212:69 '{"upip":"192.168.12.111"}'

# 设置设备的上位机端口
uwb control 192.168.12.212:69 '{"upport":"8888"}'

# 重置设备的MAC地址为初始值
uwb control 192.168.12.212:69 '{"mac":true}'

# 多个设置
uwb control 192.168.12.212:69 '{"upip":"192.168.12.111","upport":"8888","mac":true}'

uwb restart -- 设备重启

uwb restart <device_id>

示例:

# 重启
uwb restart 192.168.12.212:69

JSON 输出

所有查询命令均支持 --json 参数,输出机器可读的 JSON 格式:

# 获取原始 JSON 用于脚本处理
uwb detail 192.168.12.212:69 --json

# 保存到文件
uwb detail 192.168.12.212:69 --json > info.json

项目结构

noah-uwb-cli/
├── bin/uwb.js                  # CLI 入口文件
├── package.json                # npm package 安装包
├── src/
│   ├── index.js                # 主程序,注册所有命令
│   ├── api.js                  # UWB API 服务
│   ├── config.js               # Config
│   ├── commands/
│   │   ├── control.js          # 设备设置
│   │   ├── detail.js           # 设备详情
│   │   ├── restart.js          # 设备重启
│   │   ├── setbaseurl.js       # apiUrl 设置
│   └── utils/
│       └── output.js           # 表格/颜色/旋转器格式

License

MIT