Skip to content
PluginStats

prettier-plugin-powershell weekly downloads statistics

By Nick2bad4u (2 listings) · npm · Prettier plugins

Prettier plugin for formatting PowerShell source files with idiomatic defaults.

View on npm Fresh · Dec 6, 2026

prettier-plugin-powershell has 2,525 recorded weekly downloads on npm, an increase of 76.8% over the past 30 days, ranking #1806 of 3,247 tracked listings.

Weekly downloads
2,525
Official API · Dec 5, 2026
7-day growth
+30.5%
+590 weekly downloads
30-day growth
+76.8%
+1.1K weekly downloads
90-day growth
+647%
+2.2K weekly downloads
Rank
#1806
▼ 10 in 7 days

About prettier-plugin-powershell

Prettier Plugin PowerShell

CI codecov npm version npm downloads License: MIT Node.js >= 18.12

A Prettier 3 plugin that formats PowerShell source files (.ps1, .psm1, .psd1) with predictable, idiomatic output. The formatter is extensively tested (high coverage with strict CI thresholds) and ready for CI/CD pipelines, editor integrations, and automated release flows.

Prettier PowerShell mascot

Table of contents

Highlights

  • 🌟 Idiomatic PowerShell – balances spacing, casing, and pipeline layout while preserving comments and here-strings.
  • 🔧 Fine-grained controls – tune indentation style/width, trailing delimiters, brace style, alias rewriting, and keyword casing.
  • ⚡ Prettier-first – drop-in plugin for Prettier v3+, compatible with the CLI, editors, and format-on-save workflows.
  • 📈 Production ready – enforced by CI (lint, typecheck, tests) with Codecov-powered reporting and ≥95 % coverage gates.
  • 🛠️ TypeScript source – strongly typed AST helpers and printer utilities for easy extension.

Quick start

Install
npm install --save-dev prettier prettier-plugin-powershell

Requires Node.js 18.12 or newer and Prettier v3 or newer.

Prettier configuration

Add the plugin to your Prettier config (e.g. .prettierrc.json):

{
 "plugins": ["prettier-plugin-powershell"],
 "parser": "powershell"
}

You can co-locate plugin options with standard Prettier settings:

{
 "plugins": ["prettier-plugin-powershell"],
 "tabWidth": 2,
 "powershellTrailingComma": "all",
 "powershellRewriteAliases": true
}
Command line

Format scripts recursively:

npx prettier "**/*.ps1" --write
Programmatic usage
import prettier from "prettier";
import plugin from "prettier-plugin-powershell";

const formatted = await prettier.format(source, {
 filepath: "script.ps1",
 parser: "powershell",
 plugins: [plugin],
});

Configuration reference

OptionTypeDefaultDescription
powershellIndentStyle<code>"spaces"</code><br><code>"tabs"</code>"spaces"Render indentation with spaces or tabs.
powershellIndentSizenumber4Overrides Prettier's tabWidth specifically for PowerShell files (clamped between 1 and 8).
powershellTrailingComma<code>"none"</code><br><code>"multiline"</code><br><code>"all"</code>"none"When to emit trailing semicolons between hashtable entries (PowerShell arrays do not support trailing commas).
powershellSortHashtableKeysbooleanfalseSort hashtable keys alphabetically before printing.
powershellBlankLinesBetweenFunctionsnumber1Minimum blank lines preserved between function declarations (clamped between 0 and 3).
powershellBlankLineAfterParambooleantrueInsert a blank line after param (...) blocks within functions/script blocks.
powershellBraceStyle<code>"1tbs"</code><br><code>"allman"</code><br><code>"stroustrup"</code>"1tbs"Choose inline braces, Allman function braces, or Stroustrup continuation keywords on new lines.
powershellLineWidthnumber120Maximum print width for wrapping pipelines, hashtables, and arrays (clamped between 40 and 200).
powershellPreferSingleQuotebooleanfalsePrefer single-quoted strings when interpolation is not required.
…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • powershell
  • formatter
  • formatting
  • ps1
  • psm1
  • psd1
  • pwsh
  • scripting
  • devtools
  • code-formatting
  • opinionated
  • powershell-plugin

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-powershell weekly downloads on npm, last 90 days: 2,525 weekly downloads as of Dec 5, 2026, +647% over 90 days.prettier-plugin-powershellWeekly downloads on npm · Last 90 days2,525downloads / week+647% over 90 days01K2K3K4KSep 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-powershell weekly downloads on npm, last 90 days: 2,525 weekly downloads as of Dec 5, 2026, +647% over 90 days.

7/30/90-day growth

prettier-plugin-powershell weekly downloads growth on npm: +30.5% over 7 days, +76.8% over 30 days, +647% over 90 days.prettier-plugin-powershellWeekly downloads growth on npm2,525downloads / week now7-day growth+590 weekly downloads+30.5%30-day growth+1,097 weekly downloads+76.8%90-day growth+2,187 weekly downloads+647%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-powershell weekly downloads growth on npm: +30.5% over 7 days, +76.8% over 30 days, +647% over 90 days.

Ranking history

prettier-plugin-powershell npm ranking history: currently #1806 (by weekly downloads).prettier-plugin-powershellnpm ranking · by weekly downloads · Last 90 days#1806current rank#1300#1400#1500#1600#1700#1800#1900#2000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-powershell npm ranking history: currently #1806 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 91, #6 (overall #1,806)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 2, #6 (overall #26)
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-powershell
Date (UTC)Weekly downloadsChange vs. previous
2,525+85
2,440+978
1,462+154
1,308-92
1,400-289
1,689-53
1,742-193
1,935-18
1,953-37
1,990-79
2,069+244
1,825+423
1,402+17
1,385—

Similar npm Prettier plugins plugins

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