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 · Oct 18, 2026

prettier-plugin-verticalize has 6 recorded weekly downloads on npm, a decrease of 80.0% over the past 30 days, ranking #2140 of 2,322 tracked listings.

Weekly downloads
6
Official API · Oct 18, 2026
7-day growth
-33.3%
-3 weekly downloads
30-day growth
-80.0%
-24 weekly downloads
90-day growth
-78.6%
-22 weekly downloads
Rank
#2140
Among tracked npm listings

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: 6 weekly downloads as of Oct 18, 2026, -78.6% over 90 days.prettier-plugin-verticalizeWeekly downloads on npm · Last 90 days6downloads / week-78.6% over 90 days050100150200250300350Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-verticalize weekly downloads on npm, last 90 days: 6 weekly downloads as of Oct 18, 2026, -78.6% over 90 days.

7/30/90-day growth

prettier-plugin-verticalize weekly downloads growth on npm: -33.3% over 7 days, -80.0% over 30 days, -78.6% over 90 days.prettier-plugin-verticalizeWeekly downloads growth on npm6downloads / week now7-day growth-3 weekly downloads-33.3%30-day growth-24 weekly downloads-80.0%90-day growth-22 weekly downloads-78.6%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-verticalize weekly downloads growth on npm: -33.3% over 7 days, -80.0% over 30 days, -78.6% over 90 days.

Ranking history

prettier-plugin-verticalize npm ranking history: currently #2140 (by weekly downloads).prettier-plugin-verticalizenpm ranking · by weekly downloads · Last 90 days#2140current rank#1850#1900#1950#2000#2050#2100#2150Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-verticalize npm ranking history: currently #2140 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 108, #4 (overall #2,144)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 8, #10 (overall #150)
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 (122)
Recent weekly downloads observations for prettier-plugin-verticalize
Date (UTC)Weekly downloadsChange vs. previous
6-5
110
11+1
100
100
100
10+1
9+3
6-2
8-2
100
100
100
10—

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 Oct 20, 2026. See the methodology.