Skip to content
PluginStats

tn-prettier-imports weekly downloads statistics

By JawadAhbab · npm · Prettier plugins

Prettier plugin that keeps import and export statements on a single line.

View on npm Stale · Oct 17, 2026

tn-prettier-imports has 2 recorded weekly downloads on npm, a decrease of 77.8% over the past 30 days, ranking #2148 of 2,256 tracked listings.

Weekly downloads
2
Official API · Oct 17, 2026
7-day growth
-50.0%
-2 weekly downloads
30-day growth
-77.8%
-7 weekly downloads
90-day growth
+100%
+1 weekly downloads
Rank
#2148
Among tracked npm listings

About tn-prettier-imports

tn-prettier-imports

A Prettier v3 plugin that keeps import and export statements on a single line, overriding Prettier's default of wrapping long specifier lists one-per-line.

Install

Requires prettier@^3.

Usage

Add it to the plugins array of your Prettier config:

Works for JavaScript and TypeScript — .js, .jsx, .ts, .tsx (babel, babel-ts and typescript parsers).

What it collapses

| Statement | Behavior |

| import { ... } from '...' | → single line | | import Default, { ... } from '…' | → single line | | import type { ... } from '...' | → single line | | import * as ns from '...' | → single line | | export { ... } (local) | → single line | | export { ... } from '...' | → single line | | export type { ... } from '...' | → single line | | export * from '...' | → single line |

Everything else is formatted exactly as vanilla Prettier would — object literals, export const/function/class declarations and export default are left untouched.

Comment safety

A statement that contains a line comment inside its braces is left in Prettier's multi-line layout, because collapsing it would let the // swallow the rest of the line:

Block comments (/* ... */) collapse inline and are preserved.

How it works

The plugin wraps Prettier's built-in estree printer. For each import / export statement it takes the Doc that the stock printer produced and rewrites it into its flat, single-line form; every other node is returned unchanged. See CLAUDE.md for the architecture.

Development

License

MIT

Description from the npm listing.

  • prettier
  • prettier-plugin
  • imports
  • exports
  • single-line
  • formatting

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

tn-prettier-imports weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 17, 2026, +100% over 90 days.tn-prettier-importsWeekly downloads on npm · Last 90 days2downloads / week+100% over 90 days0246810121416Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
tn-prettier-imports weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 17, 2026, +100% over 90 days.

7/30/90-day growth

tn-prettier-imports weekly downloads growth on npm: -50.0% over 7 days, -77.8% over 30 days, +100% over 90 days.tn-prettier-importsWeekly downloads growth on npm2downloads / week now7-day growth-2 weekly downloads-50.0%30-day growth-7 weekly downloads-77.8%90-day growth+1 weekly downloads+100%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
tn-prettier-imports weekly downloads growth on npm: -50.0% over 7 days, -77.8% over 30 days, +100% over 90 days.

Ranking history

tn-prettier-imports npm ranking history: currently #2148 (by weekly downloads).tn-prettier-importsnpm ranking · by weekly downloads · Last 90 days#2148current rank#2140#2142#2144#2146#2148#2150Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
tn-prettier-imports npm ranking history: currently #2148 (by weekly downloads).

Listing placement

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

Listing placement

Prettier plugins244 listings · 13 pages · page 9, #14 (overall #174)
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 tn-prettier-imports
Date (UTC)Weekly downloadsChange vs. previous
20
2+2
00
00
00
0-4
40
40
4-1
50
50
50
5-1
6—

Similar npm Prettier plugins plugins

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