Skip to content
PluginStats

prettier-plugin-verticalize weekly downloads statistics

By panruiplay · npm · Prettier plugins

a Prettier plugin for vertically aligning your code.

View on npm Fresh · Dec 6, 2026

prettier-plugin-verticalize has 40 recorded weekly downloads on npm, an increase of 100% over the past 30 days, ranking #2828 of 3,247 tracked listings.

Weekly downloads
40
Official API · Dec 5, 2026
7-day growth
+100%
+20 weekly downloads
30-day growth
+100%
+20 weekly downloads
90-day growth
+1233%
+37 weekly downloads
Rank
#2828
▼ 26 in 7 days

About prettier-plugin-verticalize

prettier-plugin-verticalize

这是一个 Prettier v3+ 插件,用于对代码中的变量声明、枚举属性、赋值表达式等进行垂直对齐。

目前支持的对齐:

  • 变量声明
  • 枚举值
  • 赋值表达式
  • 行尾注释

⚠️ 本插件依赖等宽字体才能正确显示对齐效果。请确保编辑器使用的是等宽(monospace)字体,例如 Fira Code, JetBrains Mono, Consolas, Monaco 等。

效果预览

效果预览

安装

npm install -D prettier prettier-plugin-verticalize

需要 Prettier 3.x。

启用

在 Prettier 配置文件(prettier.config.js、prettier.config.cjs 或 .prettierrc)中注册插件。

// prettier.config.js
import prettierPluginVerticalize from 'prettier-plugin-verticalize'
export default {
  plugins: [prettierPluginVerticalize],
}
// prettier.config.cjs
module.exports = {
  plugins: [require('prettier-plugin-verticalize')],
}
// .prettierrc
{
  "plugins": ["prettier-plugin-verticalize"]
}

配置选项

选项类型默认值说明
minGroupSizenumber2最少几条语句视为一组进行对齐
maxWidthDiffnumber20组内语句之间最大宽度差异
alignTrailingCommentsbooleantrue是否启用行尾注释对齐
alignEnumsbooleantrue是否启用枚举对齐
alignVariableDeclarationbooleantrue是否启用变量声明对齐
alignAssignmentbooleantrue是否启用赋值语句对齐
alignTrailingCommentsMinGroupSizenumber-单独设置行尾注释 minGroupSize
alignTrailingCommentsMaxWidthDiffnumber-单独设置行尾注释 maxWidthDiff
alignEnumsMinGroupSizenumber-单独设置枚举 minGroupSize
alignEnumsMaxWidthDiffnumber-单独设置枚举 maxWidthDiff
alignVariableDeclarationMinGroupSizenumber-单独设置变量声明 minGroupSize
alignVariableDeclarationMaxWidthDiffnumber-单独设置变量声明 maxWidthDiff
alignAssignmentMinGroupSizenumber-单独设置赋值语句 minGroupSize
alignAssignmentMaxWidthDiffnumber-单独设置赋值语句 maxWidthDiff
minGroupSize
// 当 `minGroupSize` 设置为 3 时,少于 3 行,不对齐
const name = 'rio'
const age = 18

// 当 `minGroupSize` 设置为 3 时,大于等于 3 行,对齐
const foo       = 1
const barz      = 2
const component = 3
maxWidthDiff
// 当 `maxWidthDiff` 设置为 20 时
console.log('1234')       // 注释前长度差距为6
console.log('1234567890') // 注释前长度差距为6

const number1234       = 1 
const number1234567890 = 1

// 当 `maxWidthDiff` 设置为 5 时
console.log('1234') // 注释前长度差距为6
console.log('1234567890') // 注释前长度差距为6

const number1234 = 1
const number1234567890 = 1

Description from the npm listing.

  • prettier
  • prettier-plugin
  • vertical-align

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

prettier-plugin-verticalize weekly downloads on npm, last 90 days: 40 weekly downloads as of Dec 5, 2026, +1233% over 90 days.prettier-plugin-verticalizeWeekly downloads on npm · Last 90 days40downloads / week+1233% over 90 days01020304050Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
prettier-plugin-verticalize weekly downloads on npm, last 90 days: 40 weekly downloads as of Dec 5, 2026, +1233% over 90 days.

7/30/90-day growth

prettier-plugin-verticalize weekly downloads growth on npm: +100% over 7 days, +100% over 30 days, +1233% over 90 days.prettier-plugin-verticalizeWeekly downloads growth on npm40downloads / week now7-day growth+20 weekly downloads+100%30-day growth+20 weekly downloads+100%90-day growth+37 weekly downloads+1233%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-verticalize weekly downloads growth on npm: +100% over 7 days, +100% over 30 days, +1233% over 90 days.

Ranking history

prettier-plugin-verticalize npm ranking history: currently #2828 (by weekly downloads).prettier-plugin-verticalizenpm ranking · by weekly downloads · Last 90 days#2828current rank#1800#2000#2200#2400#2600#2800#3000#3200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 43 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-verticalize npm ranking history: currently #2828 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 142, #10 (overall #2,830)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 7, #11 (overall #131)
Prettier plugins: every listing in weekly downloads order

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)
Recent weekly downloads observations for prettier-plugin-verticalize
Date (UTC)Weekly downloadsChange vs. previous
400
40-3
43+35
8+1
70
7+2
5-15
20-2
22+3
190
190
190
190
19—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-verticalize alternatives

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-verticalize. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.