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

@zdsj/pbms-cli

v0.1.2

Published

项目预算管理系统命令行工具

Readme

PBMS CLI

项目预算管理系统命令行工具。

安装

通过 npx 使用(推荐,无需全局安装)

npx @zdsj/pbms-cli@latest --help
npx @zdsj/pbms-cli@latest dashboard

全局安装

npm install -g @zdsj/pbms-cli

# 安装后可在任意目录使用 pbms 命令
pbms --help

本地开发

cd cli
npm install

# 可选:全局链接,安装后可在任意目录使用 pbms 命令
npm link

不链接也可以直接运行:

node bin/pbms.js --help

配置

首次使用需要配置服务端地址和 API Key:

pbms config set base-url https://your-host/api
pbms config set api-key sk_xxxxxxxx

查看配置:

pbms config get

配置文件保存在 ~/.pbms/config.json

命令一览

仪表盘

pbms dashboard

公司预算(GSYSK)

pbms budget list [--keyword <kw>] [--type <yslx>] [--dept <gsbm>] [--page <p>] [--size <s>]
pbms budget get <id>
pbms budget create --data '{"ysmc":"..."}'
pbms budget create --data '{"ysbh":"YS2026099","ysmc":"..."}'
pbms budget update <id> --data '{"ysmc":"..."}'
pbms budget delete <id>
pbms budget export [--output file.xlsx]

内部项目(NBXMK)

pbms internal list [--keyword <kw>] [--phase <xmjd>] [--group <yfz>] [--page <p>] [--size <s>]
pbms internal get <id>
pbms internal create --data '{"xmmc":"..."}'
pbms internal create --data '{"xmbh":"YF2026099","xmmc":"..."}'
pbms internal update <id> --data '{"xmmc":"..."}'
pbms internal delete <id>
pbms internal export [--output file.xlsx]

外部项目(WBXMK)

pbms external list [--keyword <kw>] [--phase <xmjd>] [--customerType <khlx>] [--sales <fzxs>] [--page <p>] [--size <s>]
pbms external get <id>
pbms external create --data '{"xmmc":"..."}'
pbms external create --data '{"xmbh":"KH2026099","xmmc":"..."}'
pbms external update <id> --data '{"xmmc":"..."}'
pbms external delete <id>
pbms external export [--output file.xlsx]

审计日志

pbms log list [--keyword <kw>] [--table <table>] [--action <action>] [--page <p>] [--size <s>]
pbms log get <id>

预算同步

pbms sync
pbms sync --delayed

编号说明

内部项目、外部项目、公司预算的编号(xmbh / ysbh)在新增时均可为空:

  • 留空时,服务端会自动生成编号:
    • 内部项目:YF + 年份 + 序号,如 YF2026021
    • 外部项目:KH + 年份 + 序号,如 KH2026073
    • 公司预算:YS + 年份 + 序号,如 YS2026044
  • 序号默认 3 位,不足补零;当同一年编号超过 999 时,位数自动扩展(如 YF20261000),不会异常。
  • 手动填写编号时,需保证不重复、不为空;保存后仍可修改,但同样需满足不重复、不为空。

开发

npm run start -- <command>

依赖

  • Node.js >= 18