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

@yoyoki/wecom-cli

v0.1.0

Published

企业微信命令行工具,支持智能表格增删改查操作

Downloads

26

Readme

wecom-cli

企业微信命令行工具,支持智能表格的增删改查操作。

安装

pnpm install
pnpm build
npm link

快速开始

1. 初始化配置

wecom config init

2. 创建文档

wecom doc add --name "项目进度表" --type smart

3. 查看文档列表

wecom doc list

4. 操作智能表格

# 查询子表
wecom doc smart sheet query --name "项目进度表"

# 添加字段
wecom doc smart field add --name "项目进度表" --sheet-id SHEET_ID --title "姓名" --type 1

# 添加记录
wecom doc smart record add --name "项目进度表" --sheet-id SHEET_ID --record '{"values":{"姓名":"张三"}}'

# 查询记录
wecom doc smart record query --name "项目进度表" --sheet-id SHEET_ID

配置管理

# 设置代理
wecom config proxy --https http://proxy:8080

# 查看 token 状态
wecom config token

# 查看配置
wecom config show

开发

pnpm dev           # 开发模式运行
pnpm build         # 构建
pnpm test          # 运行测试
pnpm lint          # 代码检查
pnpm format        # 代码格式化
pnpm typecheck     # 类型检查

双模式使用

CLI 模式

wecom doc list -j

库模式

import 'reflect-metadata';
import { AppContext, container } from 'wecom-cli';

const ctx = container.resolve(AppContext);
const client = await ctx.getClient();
const { createDoc } = await import('wecom-cli');

// 方式一:通过容器自动管理 token 和 client
const result = await createDoc(client, 10, '测试文档', undefined, undefined, undefined);

// 方式二:自行创建 WeComClient(不依赖容器)
import { WeComClient, getAccessToken } from 'wecom-cli';
const token = await getAccessToken();
const myClient = new WeComClient({ accessToken: token });
const result2 = await createDoc(myClient, 10, '测试文档', undefined, undefined, undefined);