Skip to content
PluginStats

prettier-plugin-zhfmt weekly downloads statistics

By lxl66566 · npm · Prettier plugins

Prettier plugin that adds spaces between CJK and Latin characters, powered by the zhfmt WASM engine

View on npm Stale · Oct 17, 2026

prettier-plugin-zhfmt has 1 recorded weekly downloads on npm, a decrease of 93.3% over the past 30 days, ranking #2194 of 2,256 tracked listings.

Weekly downloads
1
Official API · Oct 17, 2026
7-day growth
—
Insufficient history
30-day growth
-93.3%
-14 weekly downloads
90-day growth
—
Insufficient history
Rank
#2194
Among tracked npm listings

About prettier-plugin-zhfmt

prettier-plugin-zhfmt

简体中文 | English

Prettier 插件:在中文与英文/数字之间自动添加空格(盘古之白),补上 Prettier 3 移除该功能后的空缺。格式化引擎是 zhfmt 编译的 WebAssembly,与 CLI 行为完全一致。

安装

要求 Prettier >= 3.6 (peer dependency)。更早的版本不会 await parser 的 preprocess,会导致输出为空。

使用

.prettierrc:

无需其他配置。插件会包装 Prettier 内置的 markdown / mdx parser:先用 zhfmt 加空格,再交给 Prettier 自己的解析与打印。因此 Markdown 文件仍保留 Prettier 全部原生格式化能力(列表、表格、proseWrap、嵌入代码格式化等),只是额外获得中英文空格:

纯文本模式

对不想要 Prettier 重排、只要加空格的文件(.txt、.rst 等无内置 parser 的扩展名自动推断;其他文件可显式指定),使用独立 parser zhfmt:除插入空格外输出与输入逐字节一致(不增删换行、不改列表标记):

行为说明

• 只插入单个空格,从不删除任何内容;幂等。 • 代码块、inline code、链接 URL、HTML 标签内部不加空格。 • zhfmtWhitelist 选项可指定分词白名单:每条恰好两个字符,表示这两个字符之间不插入空格(如 "B站" 保持 B站 不加空格): • 详见 zhfmt 引擎边界规则。

License

MIT OR Apache-2.0

Description from the npm listing.

  • prettier
  • prettier-plugin
  • chinese
  • cjk
  • pangu
  • spacing
  • formatter

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-zhfmt weekly downloads on npm, last 90 days: 1 weekly downloads as of Oct 17, 2026.prettier-plugin-zhfmtWeekly downloads on npm · Last 90 days1downloads / week050100150200Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
prettier-plugin-zhfmt weekly downloads on npm, last 90 days: 1 weekly downloads as of Oct 17, 2026.

7/30/90-day growth

prettier-plugin-zhfmt weekly downloads growth on npm: 7-day growth unavailable, -93.3% over 30 days, 90-day growth unavailable.prettier-plugin-zhfmtWeekly downloads growth on npm1downloads / week now7-day growth+1 weekly downloadsInsufficient history30-day growth-14 weekly downloads-93.3%90-day growth+1 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-zhfmt weekly downloads growth on npm: 7-day growth unavailable, -93.3% over 30 days, 90-day growth unavailable.

Ranking history

prettier-plugin-zhfmt npm ranking history: currently #2194 (by weekly downloads).prettier-plugin-zhfmtnpm ranking · by weekly downloads · Last 90 days#2194current rank#2186#2188#2190#2192#2194#2196Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-zhfmt npm ranking history: currently #2194 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,129 shown · page 110, #15 (overall #2,195)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 10, #14 (overall #194)
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 (121)
Recent weekly downloads observations for prettier-plugin-zhfmt
Date (UTC)Weekly downloadsChange vs. previous
10
10
10
10
10
1+1
00
0-4
4-1
5-3
80
80
80
8—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-zhfmt 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-zhfmt. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.