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 18, 2026

tn-prettier-imports has 3 recorded weekly downloads on npm, a decrease of 62.5% over the past 30 days.

Weekly downloads
3
Official API · Oct 18, 2026
7-day growth
-25.0%
-1 weekly downloads
30-day growth
-62.5%
-5 weekly downloads
90-day growth
—
Insufficient history
Rank
—
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.

// Prettier on its own                         // with tn-prettier-imports
import {                                        import { one, two, three, four, five, six } from './module'
  one,
  two,
  three,
  four,
  five,
  six,
} from './module'

Install

npm install --save-dev tn-prettier-imports
# or: yarn add -D tn-prettier-imports

Requires prettier@^3.

Usage

Add it to the plugins array of your Prettier config:

// .prettierrc.js
module.exports = {
  plugins: ['tn-prettier-imports'],
}

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

What it collapses

StatementBehavior
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:

import {
  one, // still here
  two,
} from './module'

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

yarn install
yarn test     # node --test

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: 3 weekly downloads as of Oct 18, 2026.tn-prettier-importsWeekly downloads on npm · Last 90 days3downloads / week0246810121416Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 24, 2026 – Oct 18, 2026 · 87 observations · Updated Oc…pluginstats.com
tn-prettier-imports weekly downloads on npm, last 90 days: 3 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

tn-prettier-imports weekly downloads growth on npm: -25.0% over 7 days, -62.5% over 30 days, 90-day growth unavailable.tn-prettier-importsWeekly downloads growth on npm3downloads / week now7-day growth-1 weekly downloads-25.0%30-day growth-5 weekly downloads-62.5%90-day growth+3 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
tn-prettier-imports weekly downloads growth on npm: -25.0% over 7 days, -62.5% over 30 days, 90-day growth unavailable.

Ranking history

tn-prettier-imports npm ranking history: currently #2276 (by weekly downloads).tn-prettier-importsnpm ranking · by weekly downloads · Last 90 days#2276current rank#2140#2160#2180#2200#2220#2240#2260#2280Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
tn-prettier-imports npm ranking history: currently #2276 (by weekly downloads).

Listing placement

All npm2,422 listings · 122 pages · 1,212 shown · page 118, #7 (overall #2,347)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins245 listings · 13 pages · page 10, #7 (overall #187)
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 (122)
Recent weekly downloads observations for tn-prettier-imports
Date (UTC)Weekly downloadsChange vs. previous
3+1
20
2+2
00
00
00
0-4
40
40
4-1
50
50
50
5—

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 22, 2026. See the methodology.