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

@weapp-tailwindcss/cli

v5.5.9

Published

Cross-platform Tailwind CSS CLI for Web and mini-program builds. 面向 Web 与小程序构建的跨端 Tailwind CSS CLI。

Readme

@weapp-tailwindcss/cli

English | 简体中文

A Tailwind CSS v4 command-line interface for Web and mini-program CSS. It generates browser-compatible Web CSS by default and can emit mini-program-compatible CSS explicitly with --target weapp.

[!IMPORTANT] Versions 3.x and 4.0.0-alpha.x on npm belong to the legacy Gulp workflow for native mini programs. The current CLI starts from the 5.x release line and does not provide the legacy init, Sass/Less, or project-directory scanning workflow.

Installation

pnpm add -D @weapp-tailwindcss/cli weapp-tailwindcss tailwindcss

Quick start

weapp-tw and weapp-tailwindcss are equivalent command names:

pnpm exec weapp-tw -i src/input.css -o dist/output.css
pnpm exec weapp-tw build -i src/input.css -o dist/output.css --minify
pnpm exec weapp-tailwindcss canonicalize "py-3 p-1 px-3"

The CLI reuses the Tailwind v4 generator, design system, and CSS transformation APIs from weapp-tailwindcss. It neither depends on nor invokes @tailwindcss/cli.

Output targets

| Target | Behavior | | --- | --- | | web | The default. Preserves Tailwind CSS browser selectors, escaping, and Web semantics. | | weapp | Transforms generated CSS for mini-program style environments. |

--target weapp is CSS-only. It does not scan or rewrite WXML, JavaScript, TypeScript, JSX, TSX, or existing WXSS assets. Use the Vite, Webpack, Rspack, or Gulp integrations from weapp-tailwindcss for complete mini-program projects.

Watch mode

Watch mode uses native file-system events through @parcel/watcher by default. Pass --poll or --poll=500 to use polling instead. The CLI also falls back automatically when the native watcher is unavailable.

pnpm exec weapp-tw -i src/input.css -o dist/output.css --watch
pnpm exec weapp-tw -i src/input.css -o dist/output.css --watch --poll=500

Programmatic API

import { runCli } from '@weapp-tailwindcss/cli'

const exitCode = await runCli(['-i', 'src/input.css', '-o', 'dist/output.css'])

Importing the package does not execute the CLI. runCli follows the same stdout, stderr, and process.exitCode behavior as the binary.

Use weapp-tw doctor when integrating or upgrading a project. It only reports duplicate Tailwind generation when a configuration actually references @tailwindcss/vite or @tailwindcss/postcss; a plain PostCSS config is not treated as an error.

Documentation

See the CLI guide for all options, stdin/stdout, source maps, watch mode, and canonicalize.