Skip to content
PluginStats

prettier-plugin-uncomment weekly downloads statistics

By lassekt · npm · Prettier plugins

Prettier plugin that strips comments from JS/TS/JSX/Flow files, keeping tooling directives and developer-flagged comments.

View on npm Fresh · Oct 17, 2026

prettier-plugin-uncomment has 1 recorded weekly downloads on npm, a decrease of 98.8% over the past 30 days.

It ranks #2183 of 2,256 tracked npm listings by weekly downloads.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
1
Official API · Oct 17, 2026
7-day growth
-99.4%
-177 weekly downloads
30-day growth
-98.8%
-80 weekly downloads
90-day growth
—
Insufficient history
Rank
#2183
Among tracked npm listings

About prettier-plugin-uncomment

prettier-plugin-uncomment

A Prettier plugin that strips comments from JavaScript, TypeScript, JSX and Flow files — every // and /* … */ — except comments that mean something to tooling, JSDoc that documents your code, or comments a developer has explicitly flagged to keep.

Install

Usage

On-demand, without installing (recommended)

Stripping comments is destructive, so you usually want to run it deliberately — not on every format. Use Prettier's --plugin flag, which applies the plugin only for that one command and never persists to your config. npx fetches Prettier and the plugin transiently (nothing is added to package.json):

If Prettier and the plugin are already installed in the project, the same run is just:

Your existing Prettier config (print width, semicolons, …) is still read and applied — --plugin only adds this plugin on top for that run.

If you run it often, wrap it in a package.json script. This lives in scripts (not in your Prettier config), so it never triggers on a normal format — only when you invoke it:

Pass the files to strip when you run it: npm run uncomment -- "src/**/*.ts".

Always-on, via config

If you really do want comments stripped on every format, add it to your Prettier config instead:

Then run Prettier as usual (npx prettier --write .). As with any Prettier run, list the folders you never want touched in .prettierignore; see also uncommentIgnorePaths below.

What is kept

Everything else is removed. Comments matching any of the following survive:

Tooling / linter / type-checker directives

• eslint-disable*, eslint-enable, eslint-env • @ts-ignore, @ts-expect-error, @ts-nocheck, @ts-check • /// (triple-slash directives) • prettier-ignore, biome-ignore, deno-lint-ignore, stylelint-ignore, oxlint-ignore, rome-ignore • coverage pragmas: v8 ignore, c8 ignore, istanbul ignore, node:coverage ignore

Build-tool "magic" comments (removing these changes runtime behaviour)

• webpack magic comments (webpackChunkName, webpackPrefetch, webpackIgnore, …) • @vite-ignore • //# sourceMappingURL= / //# sourceURL= • /*#PURE*/, /*#NO_SIDE_EFFECTS*/

Compiler / runtime pragmas & legal banners

• @jsx, @jsxRuntime, @jsxImportSource, @jsxFrag • @flow, @noflow • @license, @preserve, @copyright, and /*! … */ banner comments

JSDoc that documents your code (the docs that feed TS/editor hover info)

• /** … */ blocks containing a recognized JSDoc tag — @param, @returns, @type, @typedef, @template, @satisfies, @callback, @enum, @deprecated, @see, @example, and the like. • Detection uses the same /**-prefix rule TypeScript and editors use to identify a doc comment — no substring guessing. Prose-only /** … */ blocks (doc-comment delimiters with no tag) are still stripped by default; tune this with uncommentJsdoc.

Developer-flagged comments (case-insensitive)

• @hc, @hn, @Hacker Note, @Hacker Comment • TODO, FIXME

Options

| Option | Type | Default | Description |

| uncommentIgnorePaths | string[] | node_modules, dist, build, out, .next, .nuxt, .svelte-kit, coverage, vendor | Path segments whose files are left untouched. Setting this replaces the default list. | | uncommentKeep | string[] | [] | Extra case-insensitive substrings; any comment containing one is kept (extends the keep-list). | | uncommentJsdoc | "tagged" \| "all" \| "off" | "tagged" | How to treat /** … */ blocks. tagged: keep only blocks with a recognized JSDoc tag. all: keep every doc block. off: strip them unless another rule keeps them. |

How it works

Prettier reads the top-level ast.comments array to attach and print comments. The plugin wraps the built-in babel, babel-ts, babel-flow, typescript and flow parsers and filters that array after parsing — dropping every comment except the ones on the keep-list, so the rest are simply never printed. Node locations are left untouched, so the AST stays valid.

Scope & caveats

• Covers the JS/TS parser family (.js, .jsx, .ts, .tsx, Flow). CSS, HTML, Markdown, YAML, GraphQL and other languages are not touched. • Removing a comment that sat alone on its own line can leave the blank line it occupied — the same blank-line behaviour Prettier applies to any gap.

License

ISC

Description from the npm listing.

  • prettier
  • prettier-plugin
  • comments
  • uncomment
  • strip-comments
  • remove-comments

Where prettier-plugin-uncomment sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,256 listings · 113 pages · page 110, #4 (overall #2184)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins244 listings · 13 pages · page 10, #3 (overall #183)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

prettier-plugin-uncomment weekly downloads on npm, last 90 days: 1 weekly downloads as of Oct 17, 2026.prettier-plugin-uncommentWeekly downloads on npm · Last 90 days1downloads / week0100200300400500Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-uncomment weekly downloads on npm, last 90 days: 1 weekly downloads as of Oct 17, 2026.
PNG SVG

7/30/90-day growth

prettier-plugin-uncomment weekly downloads growth on npm: -99.4% over 7 days, -98.8% over 30 days, 90-day growth unavailable.prettier-plugin-uncommentWeekly downloads growth on npm1downloads / week now7-day growth-177 weekly downloads-99.4%30-day growth-80 weekly downloads-98.8%90-day growth+1 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-uncomment weekly downloads growth on npm: -99.4% over 7 days, -98.8% over 30 days, 90-day growth unavailable.
PNG SVG

Ranking history

prettier-plugin-uncomment npm ranking history: currently #2183 (by weekly downloads).prettier-plugin-uncommentnpm ranking · by weekly downloads · Last 90 days#2183current rank#600#800#1000#1200#1400#1600#1800#2000#2200Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 17, 2026 – Oct 19, 2026 · 3 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-uncomment npm ranking history: currently #2183 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (543)
Recent weekly downloads observations for prettier-plugin-uncomment
Date (UTC)Weekly downloadsChange vs. previous
1-15
16-87
103-55
1580
1580
158-5
163-15
178+14
164+85
79+29
50-20
70-5
75+2
73—

Similar npm Prettier plugins plugins

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