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

qyw-cli

v1.0.12

Published

全药网前端cli工具

Readme

qyw-cli

全药网前端 cli 工具

功能描述

  1. 将本地目录上传至对象存储(阿里云 OSS / 火山引擎 TOS / UCloud US3)
  2. 在对象存储中复制目录

安装

npm install qyw-cli -g

配置 JSON 格式

-c / --config 参数传入,配置项因存储类型不同。

OSS(阿里云)

配置项参考 阿里云文档,字段直接传给 ali-oss SDK 构造函数。

{
  "region": "oss-cn-shenzhen",
  "accessKeyId": "your-access-key-id",
  "accessKeySecret": "your-access-key-secret",
  "bucket": "your-bucket"
}

TOS(火山引擎)

字段直接传给 @volcengine/tos-sdk SDK 构造函数。bucket 硬编码在代码中(wms),无需在 JSON 中指定。

{
  "accessKeyId": "your-access-key-id",
  "accessKeySecret": "your-access-key-secret",
  "region": "cn-beijing",
  "endpoint": "tos-cn-beijing.volces.com"
}

US3(UCloud)

{
  "accesskey": "your-public-key",
  "secretkey": "your-private-key",
  "endpoint": "cn-bj.ufileos.com",
  "bucket": "your-bucket"
}

| 字段 | 说明 | |---|---| | accesskey | API 公钥 或 Token 公钥 | | secretkey | API 私钥 或 Token 私钥 | | endpoint | 地域域名,参考 地域和域名 | | bucket | 存储空间名称 |

使用方法

Usage: qyw-cli [options] [path]

Options:
  -v, -V, --version    output the version number
  -t, --type [path]    使用类型,支持 oss / tos / us3(默认 oss)
  -l, --local [path]   上传的本地文件目录,需传入参数
  -o, --oss [path]     oss 线上目录,需传入参数
  -c, --config [path]  存储配置地址,json 形式 (default: "/data/oss-client.json")
  --old [path]         复制 oss 线上目录,对应源文件夹前缀
  -h, --help           display help for command

本地上传

# OSS 上传
qyw-cli -t oss -l public/preview -o preview -c ./oss-client.json

# TOS 上传
qyw-cli -t tos -l public/preview -o preview -c ./tos-client.json

# US3 上传
qyw-cli -t us3 -l public/preview -o preview -c ./us3-client.json

目录复制

www/master/app/ 路径下的文件复制至 www/dist/app/ 目录下:

# OSS
qyw-cli -t oss --old www/master/app/ -o www/dist/app/ -c ./oss-client.json

# TOS
qyw-cli -t tos --old www/master/app/ -o www/dist/app/ -c ./tos-client.json

# US3
qyw-cli -t us3 --old www/master/app/ -o www/dist/app/ -c ./us3-client.json