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

pc-item

v1.1.1

Published

``` npm install -g pc-item ```

Downloads

42

Readme

pc-item

安装:

 npm install -g pc-item

新建项目:

当创建一个新项目时,使用以下命令:

 pc create my-project

克隆项目:

当创建的新项目是参考旧项目调整时,使用以下命令:

 pc clone my-project

注意:克隆的项目默认更新接口文件和函数文件为最新,如果不想更新可以跟上-u参数,如

 pc clone my-project -u false

修改项目:

当某个已上线的项目要修改时,使用以下命令:

 pc modify my-project

添加报名框:

数据对接项目使用以下命令添加报名框组件

 pc apply

添加其他组件:

项目需要添加调查代码、图文切换、视频等组件时,使用以下命令:

pc plugin

上传到测试链接:

(1)上传到测试链接 将上线链接路径中的zt替换为test作为测试链接路径

pc test

缺点:链接固定,存在缓存可能需要10分钟左右才能看到更新

(2)将上线链接中的zt替换为test,并在后面添加richan目录作为测试链接路径

pc test -t richan

(3)将上线链接中的zt替换为test,并在后面添加当前时间戳目录作为测试链接路径

pc test -t 0

(4)忽略好望角对接验证 如果是非好望角对接项目,例如调查代码项目,不需要做id验证,或者是开发暂时没给到id需要强制上传,可以在命令后添加-m参数,例如:

pc test -n 1

以上方式将忽略好望角id相关的验证

上传到上线链接:

(1)上传到专题线上链接

pc upload

注意:如果好望角接口返回的链接包含了双斜杠、或者非zt目录会报错,此时需人工核对是否有错误

(2)忽略好望角对接验证 如果是非好望角对接项目,例如调查代码项目,不需要做id验证,或者是开发暂时没给到id需要强制上传,可以在命令后添加-m参数,例如:

pc upload -n 1

以上方式将忽略好望角id相关的验证

提交到仓库:

提交到仓库命令

pc git -m "修改说明"

压缩dist目录文件:

以下命令打包压缩dist目录文件为zip文件,以当前项目文件夹名称命名,例如:my-project.zip

pc zip

如果需要指定压缩文件名称,可以添加-n参数,例如:

pc zip -n my-project.zip

复制打包压缩的zip文件:

以下命令复制dist目录中已打包压缩的zip文件到剪贴板

pc copy

如果需要指定复制的文件路径,可以添加-t参数,例如:

pc copy -t abc.txt

打包项目、压缩并复制zip文件:

以下命令打包项目、压缩并复制zip文件到剪贴板

pc getzip

如果需要指定压缩文件名称,可以添加-n参数,例如:

pc getzip -n my-project.zip