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

shipfe-node

v0.1.1

Published

Node.js version of shipfe deploy tool

Readme

shipfe-node

基于 Node.js 的前端静态资源部署 CLI,行为与 shipfe-rust 中的 init / deploy / rollback 流程对齐,可在 Windows、macOS、Linux 上运行。

环境要求

  • Node.js 18+(推荐 LTS)

安装

npm install -g shipfe-node
# 或项目内
npm install -D shipfe-node

本地开发可直接:

node ./bin/shipfe.js --help

快速开始

  1. 初始化配置(生成 shipfe.config.json):

    npx shipfe init
  2. 按环境编辑 shipfe.config.json(主机、路径、子环境等)。

  3. 部署:

    npx shipfe deploy --profile prod

常用命令

| 命令 | 说明 | |------|------| | shipfe init | 生成默认 shipfe.config.json,并维护 .gitignore | | shipfe deploy --profile <环境> | 按配置部署到指定环境 | | shipfe deploy --profile <环境> --all-sub | 部署该环境下所有子环境(按配置顺序) | | shipfe deploy --profile <环境> --config <路径> | 指定配置文件路径 | | shipfe deploy --profile <环境>-<子环境> | 只部署某个子环境,例如 pre-admin | | shipfe rollback --profile <环境> --to <版本号> | 回滚到指定 release 目录名(时间戳) |

配置文件

默认读取当前目录下的 shipfe.config.json,结构与 Rust 版一致,包含:

  • environments:各环境名称 → build_commandlocal_dist_pathserversremote_tmpsub_environmentshashed_asset_patternsenable_sharedkeep_releases 等。

SSH 认证

按以下优先级尝试(与 Rust 版思路一致):

  1. servers[].password
  2. 环境变量 SSH_PRIVATE_KEY(私钥内容)
  3. servers[].key_path(支持 ~ 展开为家目录)

日志

部署过程会写入当前目录 shipfe.log

许可证

MIT