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

@l-stack/tailwindcss

v3.4.16

Published

CLI tool for syncing and publishing Tailwind CSS builds

Readme

Tailwind Publisher CLI

一个用于同步和发布 Tailwind CSS 构建文件的命令行工具。

功能特性

  • 🔍 自动检测 Tailwind CSS 最新版本
  • 📥 批量下载所有 Tailwind CSS 预设文件
  • 📝 自动更新 package.json 版本信息
  • 📦 一键发布到 NPM

安装

# 在 monorepo 中构建
pnpm build

# 全局安装(可选)
pnpm link --global

使用方法

同步最新版本

# 检测最新版本并下载所有文件
tailwind-publisher sync

# 或者使用 npm script
pnpm sync

这个命令会:

  1. 检测 Tailwind CSS 的最新版本
  2. 从 CDN 下载以下文件:
    • tailwindcss.js - 基础版本
    • tailwindcss-with-forms.js - 包含 Forms 插件
    • tailwindcss-with-typography.js - 包含 Typography 插件
    • tailwindcss-with-aspect-ratio.js - 包含 Aspect Ratio 插件
    • tailwindcss-with-container-queries.js - 包含 Container Queries 插件
    • tailwindcss-with-all-plugins.js - 包含所有插件
  3. 更新 package.json 中的版本号

发布到 NPM

# 发布当前版本到 NPM
tailwind-publisher publish

# 或者使用 npm script
pnpm publish

完整工作流程

# 1. 同步最新版本
pnpm sync

# 2. 发布到 NPM
pnpm publish

技术栈

  • Node.js - 运行时环境
  • TypeScript - 类型安全的 JavaScript
  • Commander.js - CLI 框架
  • Axios - HTTP 客户端
  • Vite - 构建工具

开发

# 安装依赖
pnpm install

# 开发模式(监听文件变化)
pnpm dev

# 构建
pnpm build

# 类型检查
pnpm type-check

# 代码检查
pnpm lint

项目结构

src/
├── commands/          # 命令处理器
│   ├── sync.ts       # sync 命令
│   └── publish.ts    # publish 命令
├── libs/             # 工具函数
│   ├── version.ts    # 版本检测
│   ├── downloader.ts # 文件下载
│   └── pkg.ts        # package.json 操作
└── index.ts          # CLI 入口文件

许可证

MIT