prettier-plugin-align weekly downloads statistics
By ccharmai · npm · Prettier plugins
A Prettier plugin for aligning enums, switch statements, and other code structures for better readability.
prettier-plugin-align has 446 recorded weekly downloads on npm, an increase of 40.3% over the past 30 days, ranking #2289 of 3,247 tracked listings.
About prettier-plugin-align
prettier-plugin-align
A Prettier plugin for aligning enums, switch statements, and other structured code elements for better readability.
✨ Features
- Aligns
enumdefinitions for better readability - Formats
switchstatements to aligncasestatements properly - Ensures consistent formatting without breaking Prettier’s rules
📦 Installation
Using npm:
npm install --save-dev prettier-plugin-align
Using Yarn:
yarn add -D prettier-plugin-align
Using pnpm:
pnpm add -D prettier-plugin-align
🚀 Usage
With Prettier CLI
prettier --plugin=prettier-plugin-align --write "**/*.ts"
In .prettierrc.json
Add the plugin to your Prettier config:
{
"plugins": ["prettier-plugin-align"]
}
🎯 Example Formatting
Before:
enum Status {
Pending,
InProgress = "IN_PROGRESS",
Done = "DONE"
}
switch (status) {
case Status.Pending: return "Pending"
case Status.InProgress: return "In Progress"
case Status.Done: return "Done"
}
After:
enum Status {
Pending = "PENDING",
InProgress = "IN_PROGRESS",
Done = "DONE"
}
switch (status) {
case Status.Pending: return "Pending"
case Status.InProgress: return "In Progress"
case Status.Done: return "Done"
}
🛠 Configuration
This plugin respects your existing Prettier settings.
You can configure Prettier using .prettierrc.json, .prettierrc.js, or via CLI flags.
🧪 Running Tests
To run the test suite:
npm test
📜 License
This project is licensed under the MIT License.
Description from the npm listing.
- prettier
- prettier-plugin
- enum formatting
- switch formatting
- align
- alignment
- formatting
- code style
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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.
Each band is one page of 20. Weekly downloads on a linear 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.
Recent observations
Full history (170)Similar npm Prettier plugins plugins
All 20 prettier-plugin-align alternativesData 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-align. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.