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

@xlt-group/create-project-eslint

v1.0.1

Published

旨在快速创建项目中eslint+prettier+husky

Readme

初衷

旨在帮助我们在新项目中快速的创建 eslint+prettier+husky 配置文件,eslint 规则使用的是Alloy/eslint-config-alloy 规则

目标

一条命令完成 eslint+prettier+husky 配置文件

你将得到

  • 保存代码自动格式化 💯
  • 提交前 commit 校验 💯
  • eslint + pretter 校验 💯
  • husky 自动装载 💯
  • 适用多个项目

安装

1 局部安装(推荐使用)

npm create @xlt-group/project-eslint@latest

使用

运行命令

 在初始化过程中,如果项目中.git文件,会自动执行 git init 命令

 mac 电脑执行 `npm run postinstallmac` 来设置 husky 的读写权限

验证

代码提交前校验

npm run commit

支持的模板

img.png

npm create @xlt-group/project-eslint@latest
? Select a Eslint+Prettier template? › - Use arrow-keys. Return to submit.
❯   Javascript
    Typescript
    Vue2
    Vue3
    React
    React+Typescript
    Vue2+Typescript
    Vue3+Typescript

效果预览

npm create @xlt-group/project-eslint@latest
✔ Select a Eslint+Prettier template? › Typescript
✔ Is add .git and .husky? … yes
[web-eslint]:✅ package.json
[web-eslint]:✅ .eslintrc.js
[web-eslint]:✅ .eslintignore
[web-eslint]:✅ .editorconfig
[web-eslint]:✅ .prettierrc.js
[web-eslint]:✅ .prettierignore
[web-eslint]:✅ .cz-config.js
[web-eslint]:✅ commitlint.config.js
[web-eslint]:✅ .husky
已初始化空的 Git 仓库于 /Volumes/weipengcheng/sourceCode/test-demo/test-demo/eslint-demo/.git/
[web-eslint]:接下来执行npm install...请等待完成

> [email protected] prepare
> husky install

husky - Git hooks installed

added 410 packages in 19s
[web-eslint]:eslint+prettier+husky配置文件初始化成功!
[web-eslint]:
    😎 如果你吃饭的家伙是vscode
    😎 请自行配置.vscode 文件
    😘 推荐安装vscode插件 eslint、prettier

img_1.png