Skip to content
PluginStats

prettier-plugin-yaml weekly downloads statistics

By porada (3 listings) · npm · Prettier plugins

Additional YAML formatting options for Prettier

View on npm Fresh · Dec 6, 2026

prettier-plugin-yaml has 18,526 recorded weekly downloads on npm, a decrease of 4.4% over the past 30 days, ranking #1057 of 3,247 tracked listings.

Weekly downloads
18,526
Official API · Dec 5, 2026
7-day growth
-8.2%
-1.7K weekly downloads
30-day growth
-4.4%
-846 weekly downloads
90-day growth
+116%
+10K weekly downloads
Rank
#1057
▼ 29 in 7 days

About prettier-plugin-yaml

<p align="center"> <a href="https://github.com/porada/prettier-plugin-yaml"> <picture> <source srcset="https://github.com/porada/prettier-plugin-yaml/blob/main/.github/assets/prettier-plugin-yaml-dark-scheme@3x.png?raw=true" media="(prefers-color-scheme: dark)" /> <source srcset="https://github.com/porada/prettier-plugin-yaml/blob/main/.github/assets/prettier-plugin-yaml-light-scheme@3x.png?raw=true" media="(prefers-color-scheme: light)" /> <img src="https://github.com/porada/prettier-plugin-yaml/blob/main/.github/assets/prettier-plugin-yaml-light-scheme@3x.png?raw=true" width="520" alt="" /> </picture> </a> </p> <h1 align="center">prettier-plugin-yaml</h1> <p align="center">Additional YAML formatting options for&nbsp;Prettier.</p> <p align="center"> <a href="https://npmx.dev/package/prettier-plugin-yaml" ><img src="https://img.shields.io/npm/v/prettier-plugin-yaml?style=flat-square" alt="" /></a> <a href="https://github.com/porada/prettier-plugin-yaml/actions/workflows/test.yaml" ><img src="https://img.shields.io/github/actions/workflow/status/porada/prettier-plugin-yaml/test.yaml?style=flat-square" alt="" /></a> <a href="https://codecov.io/github/porada/prettier-plugin-yaml" ><img src="https://img.shields.io/codecov/c/github/porada/prettier-plugin-yaml?style=flat-square" alt="" /></a> </p> <div>&nbsp;</div>

Install

npm install --save-dev prettier-plugin-yaml
pnpm add --save-dev prettier-plugin-yaml

Usage

Reference prettier-plugin-yaml in your Prettier config:

{
    "plugins": [
        "prettier-plugin-yaml"
    ]
}

If you’re using any other YAML plugins, make sure prettier-plugin-yaml is listed last.

Options

In addition to Prettier’s built-in options that affect YAML formatting, prettier-plugin-yaml offers additional configuration options.

interface PluginOptions {
    /**
     * Enforce a single block style for multi-line string values. Does not apply
     * to flow collections.
     */
    yamlBlockStyle?: 'folded' | 'literal' | undefined;
    /**
     * Enforce a single collection style for maps and sequences.
     */
    yamlCollectionStyle?: 'block' | 'flow' | undefined;
    /**
     * Quote all scalar mapping keys. Leaves YAML merge keys and explicitly
     * tagged non-string keys unchanged. Removes unnecessary quotes when disabled.
     * @default false
     */
    yamlQuoteKeys?: boolean | undefined;
    /**
     * Quote keys that match a specific pattern. Non-string keys are matched
     * based on their string representation. Leaves YAML merge keys and explicitly
     * tagged non-string keys unchanged. Doesn’t affect keys that must be quoted
     * anyway.
     */
    yamlQuoteKeysMatching?: string | undefined;
    /**
     * Quote all string values. Takes precedence over `yamlBlockStyle`. Removes
     * unnecessary quotes when disabled.
     * @default false
     */
    yamlQuoteValues?: boolean | undefined;
    /**
     * Quote values that match a specific pattern. Non-string values are matched
     * based on their string representation. Leaves explicitly tagged non-string
     * values unchanged. Takes precedence over `yamlBlockStyle`. Doesn’t affect
     * values that must be quoted anyway.
     */
    yamlQuoteValuesMatching?: string | undefined;
}

FAQ

How do I automatically quote integer values?

Use yamlQuoteValuesMatching. Unlike yamlQuoteValues, which only applies to string values, it matches values based on their string representation. For example, to quote integers:

{
    "yamlQuoteValuesMatching": "^\\d+$"
}

You can quote boolean and null values similarly:

{
    "yamlQuoteValuesMatching": "^(true|false|null)$"
}

To quote mapping keys, use yamlQuoteKeys and yamlQuoteKeysMatching.

Why is the pattern a string instead of a regular expression?

yamlQuoteValuesMatching and yamlQuoteKeysMatching accept strings due to a limitation in how Prettier handles configuration values. RegExp is not a supported type, so the pattern must be provided as a string.

Internally, the plugin applies the pattern as new RegExp(pattern). Remember to escape backslashes and other special characters accordingly.

Related

License

MIT © Dom Porada

Description from the npm listing.

  • formatting
  • prettier
  • prettier-plugin
  • yaml
  • yml

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-yaml weekly downloads on npm, last 90 days: 18,526 weekly downloads as of Dec 5, 2026, +116% over 90 days.prettier-plugin-yamlWeekly downloads on npm · Last 90 days18,526downloads / week+116% over 90 days05K10K15K20K25KSep 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-yaml weekly downloads on npm, last 90 days: 18,526 weekly downloads as of Dec 5, 2026, +116% over 90 days.

7/30/90-day growth

prettier-plugin-yaml weekly downloads growth on npm: -8.2% over 7 days, -4.4% over 30 days, +116% over 90 days.prettier-plugin-yamlWeekly downloads growth on npm18,526downloads / week now7-day growth-1,651 weekly downloads-8.2%30-day growth-846 weekly downloads-4.4%90-day growth+9,967 weekly downloads+116%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-yaml weekly downloads growth on npm: -8.2% over 7 days, -4.4% over 30 days, +116% over 90 days.

Ranking history

prettier-plugin-yaml npm ranking history: currently #1057 (by weekly downloads).prettier-plugin-yamlnpm ranking · by weekly downloads · Last 90 days#1057current rank#940#960#980#1000#1020#1040#1060#1080#1100Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-yaml npm ranking history: currently #1057 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 53, #17 (overall #1,057)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 1, #13 (overall #13)
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-yaml
Date (UTC)Weekly downloadsChange vs. previous
18,526+150
18,376+1.8K
16,547+66
16,481-1.1K
17,546-1.4K
18,897-1.1K
19,979-198
20,177-574
20,751-1.6K
22,326-637
22,963-1.3K
24,306+967
23,339+1.5K
21,861—

Similar npm Prettier plugins plugins

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