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

cwy-app

v1.0.4

Published

- 此命令会初始化脚手架配置文件,通过配置文件可自定义脚手架行为(注意此文件需要在执行命令的目录才可生效)

Readme

一、cli 功能说明(此分支为发布过,通过下载 zip 拉取模板,是实际使用的分支)

1、初始化脚手架配置文件

  • 此命令会初始化脚手架配置文件,通过配置文件可自定义脚手架行为(注意此文件需要在执行命令的目录才可生效)
cwy-app conf
  • 配置文件说明
{
  // 预览二维码生成信息(不设置ip时脚手架会自动获取,但因网络限制可能ip无法访问,可自行通过ipconfig查询到后在此配置文件设置,或通过脚手架提供的--ip进行设置)
  "preview": {
    "ip": "",
    "port": "9106",
    "smallQrCode": false // 是否生成小二维码
  },
  // 脚手架初始化项目、更新sdk资源文件存储地址
  "initHost":"https://cwyapp.com/cwyAppTemplate"
}

2、使用脚手架初始化项目

  • 此命令会根据 projectName 自动创建文件夹,请确保执行命令目录无同名文件夹
cwy-app init projectName

3、打包项目

  • 此命令需要在项目根目录执行,每次打包需更新 version
cwy-app build

4、发布项目

  • 此命令需要在项目根目录执行,发布资源需要提供用户名、密码、发布地址,此处将自动从项目中读取
cwy-app push

5、移动端预览

  • 启动项目后可通过下方命令生成预览二维码,通过移动端扫码进行调试。注意需要保证项目与预览手机在同一局域网下,若网络存在限制可能导致无法访问。请更换网络或通过电脑主动开启热点,手机链接后进行访问。脚手架会自动获取真实网卡 IP 并生成二维码,若通过虚拟网卡开启热点,可通过 ipconfig 命令查询 ip,再通过脚手架自定义 ip 功能修改生成的二维码,也可通过脚手架配置文件进行修改。
cwy-app preview
  • 使用 --port 可自定义端口号,使用 --ip 可自定义主机 ip,若 cli 查找的 IP 不正确可使用此方式自定义 ip 及端口号
cwy-app preview --port 8080 --ip 192.168.152.1

6、更新项目内置财务云 sdk

  • 可以使用以下命令更新项目内置的财务云 sdk
cwy-app update

7、查看帮助信息

  • 可以使用以下命令查看帮助信息
cwy-app -h

或

cwy-app --help

二、脚手架开发环境配置

1、安装依赖

npm install

2、启动项目

npm run dev

3、将 cli 链接到全局

npm run link:cli

4、打包项目

npm run build