Skip to content
PluginStats

prettier-plugin-tailwind-multiline weekly downloads statistics

By ivanlynch · npm · Prettier plugins

Prettier plugin that formats Tailwind classes in multiple lines for JS/TS/HTML

View on npm Fresh · Oct 17, 2026

prettier-plugin-tailwind-multiline has 22 recorded weekly downloads on npm, an increase of 37.5% over the past 30 days.

It ranks #1818 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -15.4%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
22
Official API · Oct 17, 2026
7-day growth
+29.4%
+5 weekly downloads
30-day growth
+37.5%
+6 weekly downloads
90-day growth
-15.4%
-4 weekly downloads
Rank
#1818
Among tracked npm listings

About prettier-plugin-tailwind-multiline

prettier-plugin-tailwind-multiline

A Prettier plugin that automatically formats Tailwind classes into multiple lines to improve code readability.

Features

• Automatically splits Tailwind classes into multiple lines when there are more than X classes (configurable) • Maintains all Prettier existing functionality • Compatible with React (JSX/TSX), Vue, Angular, and other frameworks • Compatible with HTML files • Compatible with Vue and Svelte components • Easy to install and configure • Zero additional dependencies • Better code readability and maintainability

Installation

or

Usage in your project

1. Automatic installation

Once installed, Prettier will automatically detect and use this plugin. No additional configuration is required if you already have Prettier set up in your project.

2. Configuration in different environments

In projects with a Prettier configuration file

If you have a .prettierrc, .prettierrc.json, or .prettierrc.js file in your project, you can configure the plugin by adding:

In projects with package.json

You can also configure Prettier directly in your package.json:

In projects with ESLint + Prettier

If you're using the eslint-plugin-prettier, make sure to include this plugin in your ESLint configuration:

In VsCode with Prettier extension

If you use VS Code with the Prettier extension, no additional configuration is needed. The plugin will be automatically detected as long as it's installed in your project dependencies.

3. Usage with npm scripts

You can set up a script in your package.json to format all your files:

And then run it with:

4. Usage with formatting tools in CI/CD

To use in CI/CD environments, you can verify that all code is properly formatted:

Example

Before:

After:

HTML Before:

HTML After:

Vue Before:

Vue After:

Svelte Before:

Svelte After:

Configuration

You can adjust the minimum number of classes needed to trigger multiline formatting:

• tailwindClassThreshold: (default: 2) Number of classes after which formatting will be applied in multiple lines

Troubleshooting

If the plugin doesn't seem to be working:

1. Make sure Prettier is correctly configured 2. Verify that the plugin is installed in the current project 3. Confirm there are no conflicts with other Prettier plugins

Compatibility

• Prettier v3.0.0 or higher • JavaScript/TypeScript/JSX/TSX • Projects with React, Vue, Angular, etc. • HTML files

How it works

The plugin uses regular expressions to identify className attributes with multiple Tailwind classes and converts them into multiline template strings. The process occurs during Prettier's preprocessing phase, before standard formatting is applied.

Contributions

Contributions are welcome. To contribute:

1. Fork the repository 2. Create a new branch (git checkout -b feature/amazing-feature) 3. Commit your changes (git commit -m 'Add some amazing feature') 4. Push to the branch (git push origin feature/amazing-feature) 5. Open a Pull Request

License

MIT

Author

Ivan Lynch

Description from the npm listing.

  • prettier
  • prettier-plugin
  • tailwindcss
  • tailwind
  • formatting
  • jsx
  • react
  • typescript
  • tsx
  • html
  • ui
  • readability

Where prettier-plugin-tailwind-multiline sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 91, #19 (overall #1819)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins241 listings · 13 pages · page 5, #8 (overall #88)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

prettier-plugin-tailwind-multiline weekly downloads on npm, last 90 days: 22 weekly downloads as of Oct 17, 2026, -15.4% over 90 days.prettier-plugin-tailwind-multilineWeekly downloads on npm · Last 90 days22downloads / week-15.4% over 90 days020406080Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-tailwind-multiline weekly downloads on npm, last 90 days: 22 weekly downloads as of Oct 17, 2026, -15.4% over 90 days.
PNG SVG

7/30/90-day growth

prettier-plugin-tailwind-multiline weekly downloads growth on npm: +29.4% over 7 days, +37.5% over 30 days, -15.4% over 90 days.prettier-plugin-tailwind-multilineWeekly downloads growth on npm22downloads / week now7-day growth+5 weekly downloads+29.4%30-day growth+6 weekly downloads+37.5%90-day growth-4 weekly downloads-15.4%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-tailwind-multiline weekly downloads growth on npm: +29.4% over 7 days, +37.5% over 30 days, -15.4% over 90 days.
PNG SVG

Ranking history

prettier-plugin-tailwind-multiline npm ranking history: currently #1818 (by weekly downloads).prettier-plugin-tailwind-multilinenpm ranking · by weekly downloads · Last 90 days#1818current rank#1816#1817#1818#1819#1820Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-tailwind-multiline npm ranking history: currently #1818 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (121)
Recent weekly downloads observations for prettier-plugin-tailwind-multiline
Date (UTC)Weekly downloadsChange vs. previous
220
22-7
290
290
290
29+12
170
17-1
18+9
9-11
20-4
24-25
49-18
67—

Similar npm Prettier plugins plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/prettier-plugin-tailwind-multiline. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.