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 🙏

© 2025 – Pkg Stats / Ryan Hefner

cyjh-cli

v1.1.0

Published

cli for cyjh

Readme

cyjh-cli介绍

cyjh-cli可以一键生成项目目录的脚手架工具

目前包含PCMobile两套项目目录模版可以选择生成

同时也可以自定义添加模版文件

cyjh-cli安裝

//安装cyjh-cli模块到全局
npm install cyjh-cli -g

//使用淘宝镜向源安装
npm install cyjh-cli -g --registry=https://registry.npm.taobao.org

//查看版本号
cyjh -V

//查看使用帮助
cyjh -h
cyjh-init -h

创建生成目录

在需要创建生成项目的文件夹下,打开cmd命令控制台,执行如下命令:

//创建项目目录并选择加载模版文件
cyjh init

//创建PC目录并加载pc端模版文件
cyjh init -P

//创建Mobile目录并加载Mobile端模版文件
cyjh init -M 

//同时创建PC和Mobile目录,并加载PC和Mobile端模版文件
cyjh init -P -M

添加自定义模版文件

  • 在需要添加模版的目录下:创建 模版文件夹模版文件,如果存在空文件夹时,请在空文件下创建名为:.empty文件
  • 执行cyjh addcyjh add <template-name>可添加当前目录模版到全局
  • 执行cyjh remove可删除模版
  • 执行cyjh init可选择添加的模版生成项目目录

自动化编译*.scss文件

生成PCMobile项目的根目录存在_FolderWatchConfig.jscompress配置文件,该配置文件是JSCompress软件(官网)配置生成的。

下载安装JSCompress软件打开后,将_FolderWatchConfig.jscompress配置文件拖入软件即可自动化编译*.scss文件

编译后的*.css文件会存放在Style/Css目录下。

自动化合并压缩*.png文件并生成相应的css文件

生成PCMobile项目的Style/Images目录下存在icon.png.jscompress配置文件。将该配置文件拖入JSCompress软件(官网)即可。

JSCompress软件会自动合并压缩Delete/Icon目录下的图片至Style/Images目录。并且会在Style/Scss目录下生成_Icon.scss文件。


要求

  • node >= 4.0
  • npm >= 3.0