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 🙏

© 2024 – Pkg Stats / Ryan Hefner

easy-cli2

v1.5.4

Published

一个简易的脚手架,提供eslint格式化检查,创建项目模板,自动部署功能,xlsx与json互转,压缩图片等功能

Downloads

14

Readme

easy-cli

一个简易的脚手架工具


安装

npm i -g easy-cli2

注: 安装的时候可能会出现此错误:

getaddrinfo ENOTFOUND raw.githubusercontent.com

或者

connect timeout 185.199.108.133

在 hosts 文件下添加下面这个地址,并重试多几次即可,最好以管理员方式运行

185.199.108.133 raw.githubusercontent.com


使用

easy <命令名> [options]


命令列表

  • easy eslint

    eslint 格式化并检查代码

  • easy create 项目名

    模板列表:

    • 前端:

      • 基础模板,不使用框架,包含 jquery,normalize.css,animate.css;

      • vue3 模板;

      • react 模板(基于 umi3.x)

    • 后端:

      • koa 模板

      • midway 模板

  • easy deploy

    自动部署

  • easy rollup [options]

    使用 rollu 构建当前项目,命令可选参数 -d / -default ,使用默认配置构建

  • easy npm [options]

    查看、设置、重置 npm 源。

    easy npm -r/--rest 重置 npm 源

    easy npm -l/--list 查看已安装的全局 npm 包

    easy npm -c/--check 查看 npm 源

    easy npm -t/--taobao 把 npm 源设置为淘宝镜像

    easy npm -u/--url <链接> 设置 npm 源

  • easy x2j [file] [options]

    easy x2j example.xlsx x2j [-o outputname] //-o | --output 可选的

    把 xlsx 文件转换为 json 文件

  • easy j2x [file] [options]

    easy x2j example.json j2x [-o outputname] //-o | --output 可选的

    把 json 文件转换为 xlsx 文件,json 文件格式为:

{
  sheetname:[
    {
      attr1:'value',
      attr2:'value'
    }
  ],
  sheetname2:[
    {
      attr1:'value',
      attr2:'value'
    }
  ]
}
  • easy compress [image]

    压缩图片,支持的格式: jpg/jpeg, svg, png, gif

    easy compress your_image 压缩指定图片

    easy compress -l|--list images 压缩指定文件夹下的所有图片,但不包含其子文件夹下的

  • easy minify

    压缩 js,css 和 html,适合没有使用框架的项目,即使用 script 标签引入开发的项目,例如:使用 easy create 创建的基础模板

    easy minify -a [-o output_dir_name] 压缩当前目录所有的 js,css ,html,默认压缩到 dist 目录下,可以使用-o 设置输出的目录名称

    easy minify your_file.js|.css|.html [-o output_name] 压缩指定文件,默认压缩的文件名为 filename.min.js|.css|.html,可以使用 -o 设置输出的文件名

    其中,以下目录会忽略: node_modules , img , imgs , image , images , less , scss , sass