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

@xunserver/cli

v0.1.17

Published

xs 前端脚手架工具,用于快速生成项目

Readme

介绍

xs具有创建项目脚手架、快速生成store、页面、request等的全功能命令行工具, 基于commander实现。参考git命令行实现,[]表示可选的参数,<>表示必填参数。选项支持缩写的形式,所有缩写的选型均是大写。

安装

npm i -g @xunserver/cli

使用

init

初始化项目,默认支持git仓库和npm仓库下载,详情参考命令行提示,-h 或者--help。git仓库默认从xunserver/xunserver-template-xxx 下载,npm 仓库从xunserver-template 下载。

add

lint

通过问询的方式添加项目lint规则,使用会在项目中添加响应的lint规则, 包括eslint、stylelint、prettier、commitlint和editorconfig规则。

build

支持配置文件配置打包细节

pub

通过获取当前目录下的配置文件

配置文件详解

仅支持cjs格式的配置文件,.xsrc.js 或者xs.config.js。 或者通过--config filename 指定配置文件

interface BuildFunction {
  (config: XsConfig): any;
}

interface XsConfig {
  type: 'vue' | 'vue2' | 'react' | 'common';  
  typescript: boolean; // default true
  build: Boolean  | BuildFunction | {  // 默认是webpack配置,会和默认配置合并,支持函数自定义打包和rollup打包
    [key: string]: any
  },
  pub: boolean | Function | {
    git: boolean |  {  // 是否支持自动提交git
      origin?: string;  // 需要上传的仓库名,默认origin
      branch?: string;  // 默认 main
      commitMsg?: string | ((package:any) => string)  // 默认当前 `${packageJson.name} pub ${packageJson.version} + 1`
    },
    npmToken?: string  // npm 发布秘钥,如果未配置,从APP_NPM_TOKEN获取
  },
  server: {  // 如果type是
    [key: string]: any
  }
}