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

@loint2101/s3-cli

v2.3.0

Published

CLI tool for building and publishing .NET projects with MSBuild. Supports multiple project profiles, auto-zip, and customizable clean rules.

Readme

@loint2101/s3-cli

CLI tool giúp build và publish các project .NET (ASP.NET, WebForms, MVC) bằng MSBuild — thay thế các file .bat thủ công.

Tính năng

  • Multi-profile — quản lý nhiều project (WebPOS, WebAdmin, API...) qua file JSON
  • Build hàng loạt — s3 build webpos webadmin hoặc s3 build all
  • Interactive init — s3 init quét .csproj + .pubxml, wizard tạo profile nhanh
  • Precompile — hỗ trợ PrecompileBeforePublish / EnableUpdateable
  • Auto-zip — tự động nén output thành file .zip có gắn ngày
  • Dọn dẹp thông minh — xóa file/folder không cần thiết trước khi zip (config, images, resources...)
  • Chạy song song — build tối đa 3 profile cùng lúc

Cài đặt

npm install -g @loint2101/s3-cli

Yêu cầu: Node.js >= 16 và MSBuild (Visual Studio hoặc Build Tools).

Sử dụng

Khởi tạo profile

# Interactive wizard — quét .csproj, hỏi từng bước
s3 init

# Auto-scan — tự động gen profile, không hỏi
s3 init --scan

# Lưu vào global (~/.s3build/profiles/)
s3 init --global

Wizard tự động:

  • Quét .csproj trong thư mục hiện tại (bỏ qua class library)
  • Đọc .pubxml trong Properties\PublishProfiles\ để pre-fill thông tin
  • Pre-check sẵn folder/file thường xoá (Images, web.config, App_GlobalResources...)

Cấu trúc profile

{
  "name": "WebPOS",
  "project": "C:\\path\\to\\WebPOS.csproj",
  "publishDir": "C:\\localpublish\\WebPOS",
  "zipDir": "C:\\localpublish",
  "zipPattern": "WebPOS_{date}.zip",
  "msbuild": {
    "configuration": "Release",
    "deployOnBuild": true,
    "webPublishMethod": "FileSystem",
    "precompileBeforePublish": true,
    "enableUpdateable": true
  },
  "clean": {
    "folders": ["Images", "PaymentSetting"],
    "files": ["web.config", "ConnectionStrings.config"]
  }
}

Build

# Build một profile
s3 build webpos

# Build nhiều profile cùng lúc (song song tối đa 3)
s3 build webpos webadmin

# Build tất cả profiles
s3 build all

# Build với ngày tùy chỉnh
s3 build webpos --date 01-07-2026

Xem danh sách profiles

s3 list

Quản lý config

# Xem profile
s3 config get webpos

# Set field (tự động parse kiểu: true/false, number, string)
s3 config set webpos msbuild.configuration Debug
s3 config set webpos msbuild.skipPostBuild true

# Thêm/xoá item trong mảng
s3 config add webpos clean.folders Temp
s3 config remove webpos clean.files web.config

# Xoá profile
s3 config delete webpos

Profile lookup

CLI tìm profile theo thứ tự ưu tiên:

  1. ./s3build-profiles/<name>.json (thư mục hiện tại)
  2. ~/.s3build/profiles/<name>.json (global)
  3. Bundled profiles (cài kèm package)

Luồng hoạt động

s3 build <profiles...>
  │
  ├── [parallel max 3]
  │   ├── 1. Load profile config
  │   ├── 2. Xóa thư mục publish cũ
  │   ├── 3. Chạy MSBuild → publish ra folder (optionally precompile)
  │   ├── 4. Xóa folders/files theo clean config
  │   └── 5. Nén thành ZIP (archiver)
  │
  └── Done → hiển thị danh sách file ZIP

License

MIT