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

ys-package

v0.0.1

Published

可以使用 npm 或 yarn 的方式进行安装

Readme

云上自动打包发布工具

安装

可以使用 npm 或 yarn 的方式进行安装

$ npm install ys-package -g

$ yarn add ys-package -g

如果你是将项目签至本地时,可以使用 npm link 将项目挂载到全局变量中

$ cd ys-package
$ npm link

如果你想取消挂载,可以使用 npm unlink

$ cd ys-package
$ npm unlink

使用

在任意目录下使用 cmd 执行 ys-package

$ ys-package

配置 Config

项目提供 config 配置,初次使用时程序会提醒你配置。

程序将为你在 shellcmd 命令执行的目录创建 package.config.js 文件,请确认好在固定目录下进行命令执行,否则将会需要配置多个 package.config.js 文件

如果你不选择配置 package.config.js 时,将会读取程序目录下的 package.config.js 。你可以前往程序目录进行修改。

配置格式

module.exports = {
	// 项目名称
    "YunShl": {
    	// 测试环境
        "test": {
        	// 要执行的打包命令
            "command": `npm run test`,
            // winscp 的账号密码 格式为:root:xxxxx@xxxxx
            "winscpConf": `*****请配置winscp帐号密码(root:xxxxx@xxxxx)*****`,
        },
        // 生产环境
        "production": {
            "command": `npm run build`,
            "winscpConf": `*****请配置winscp帐号密码(root:xxxxx@xxxxx)*****`,
        },
        // 主干
        "trunk": {
        	// 项目路径
            "projectPath": `D:\\workSpace\\YunShl\\trunk`,
        },
        // 分支
        "branches": {
            "projectPath": `D:\\workSpace\\YunShl\\branches`,
        },
    },
};

文件目录约定

主干

项目会通过 config 文件配置的 项目路径 中查找该文件下的文件作为 项目选项

// 示例
├── trunk
|   ├── YunShlAccount
分支

项目会通过 config 文件配置的 项目路径 中查找该文件下的文件作为 版本选项 ,通过选择 版本选项 文件查找该目录下文件作为 项目选项

// 示例
├── branches
|   ├── vx.x.x
|   |   ├── YunShlAccount

PS:文件名自定

注意事项

打包发布上传服务器的文件名是从 package.jsonname 获取的,请注意配置 package.json