Skip to content
PluginStats

@pingid/prettier-plugin-sort-imports weekly downloads statistics

By pingid · npm · Prettier plugins

A tiny Prettier plugin that keeps your import statements tidy.

View on npm Fresh · Dec 6, 2026

@pingid/prettier-plugin-sort-imports has 96 recorded weekly downloads on npm, an increase of 700% over the past 30 days, ranking #2633 of 3,247 tracked listings.

Weekly downloads
96
Official API · Dec 5, 2026
7-day growth
+433%
+78 weekly downloads
30-day growth
+700%
+84 weekly downloads
90-day growth
+1820%
+91 weekly downloads
Rank
#2633
▲ 205 in 7 days

About @pingid/prettier-plugin-sort-imports

@pingid/prettier-plugin-sort-imports

A tiny Prettier 3 plugin that keeps your import statements tidy.

  • Groups consecutive import ... lines that are separated by blank lines.
  • Within every group the lines are reordered by length – the longest import goes on top.
  • Side-effect imports (import 'foo') are pinned to the top of their group in source order, since their order is semantically meaningful.

Installation

pnpm add -D @pingid/prettier-plugin-sort-imports
# or
yarn add -D @pingid/prettier-plugin-sort-imports
# or
npm i -D @pingid/prettier-plugin-sort-imports

Add the plugin to your configuration .prettierrc:

{
  "plugins": ["@pingid/prettier-plugin-sort-imports"]
}

Example

// before
import a from 'a'
import { join } from 'node:path'

import b from './b'
import c from './utils/c'

// after — formatted by Prettier
import { join } from 'node:path'
import a from 'a'

import c from './utils/c'
import b from './b'
Side-effect imports

Bare import 'foo' statements are pinned at the top of their group in source order, because reordering them can change runtime behaviour (CSS resets, polyfills, registrations).

// before
import a from 'a'
import 'reset.css'
import { b, c, d } from 'b'

// after
import 'reset.css'
import { b, c, d } from 'b'
import a from 'a'
Option: shiftRelativeImports

Moves relative imports (./ or ../) into a section below absolute imports.
Still sorts by line length within each group and preserves blank lines between original relative-only groups.

Default: false

Prettier config:

{
  "plugins": ["@pingid/prettier-plugin-sort-imports"],
  "shiftRelativeImports": true
}

Example (simple):

// before
import a from '../relative'
import { b, c } from 'b'

import d from 'c'
import { e, f } from 'd'
import { g, h } from '../relative'

// after
import { b, c } from 'b'

import d from 'c'
import { e, f } from 'd'

import { g, h } from '../relative'
import a from '../relative'

License

This project is licensed under the MIT License.

MIT © Dan Beaven

Description from the npm listing.

  • prettier
  • prettier-plugin
  • imports
  • sort
  • typescript

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

@pingid/prettier-plugin-sort-imports weekly downloads on npm, last 90 days: 96 weekly downloads as of Dec 5, 2026, +1820% over 90 days.@pingid/prettier-plugin-sort-importsWeekly downloads on npm · Last 90 days96downloads / week+1820% over 90 days020406080100Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@pingid/prettier-plugin-sort-imports weekly downloads on npm, last 90 days: 96 weekly downloads as of Dec 5, 2026, +1820% over 90 days.

7/30/90-day growth

@pingid/prettier-plugin-sort-imports weekly downloads growth on npm: +433% over 7 days, +700% over 30 days, +1820% over 90 days.@pingid/prettier-plugin-sort-importsWeekly downloads growth on npm96downloads / week now7-day growth+78 weekly downloads+433%30-day growth+84 weekly downloads+700%90-day growth+91 weekly downloads+1820%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@pingid/prettier-plugin-sort-imports weekly downloads growth on npm: +433% over 7 days, +700% over 30 days, +1820% over 90 days.

Ranking history

@pingid/prettier-plugin-sort-imports npm ranking history: currently #2633 (by weekly downloads).@pingid/prettier-plugin-sort-importsnpm ranking · by weekly downloads · Last 90 days#2633current rank#1800#2000#2200#2400#2600#2800#3000#3200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@pingid/prettier-plugin-sort-imports npm ranking history: currently #2633 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 132, #13 (overall #2,633)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 5, #12 (overall #92)
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 @pingid/prettier-plugin-sort-imports
Date (UTC)Weekly downloadsChange vs. previous
960
96+18
78+23
55-1
56+27
29+25
4-14
18+1
17+1
16+1
15+1
140
14-1
15—

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/@pingid/prettier-plugin-sort-imports. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.