Skip to content
JS
Package

@trivago/prettier-plugin-sort-imports

A prettier plugins to sort imports in provided RegEx order

v6.0.2, 7 Jan 2026Apache-2.0ESM onlyTypes: BundledLinting and formattingTypeScript tooling
$ npm install @trivago/prettier-plugin-sort-imports

Key numbers

As of 25 Sept 2026
Weekly downloads
1.8m
+11% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
8
Direct, from package.json
Last release
8 months ago
v6.0.2
GitHub stars
4k
162 forks
Open issues / PRs
87 / 7
Contributors
-
Commits, last 52 weeks
11

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.9m (21 Jul 2026)Low 1.1m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

1,846,292 downloads last week, 8,499,665 in the last month. The 12-month change of +11% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
340 in total
Latest version
6.0.2, 7 Jan 20268 months ago
First published
20 Jul 2020
Last push to GitHub
7 Jan 2026260 days before the snapshot
Repository archived
No
Open issues
87
Open pull requests
7
Commits, last 52 weeks
11
Dependents on npm
848

Major versions

  1. v6 first release 6.0.0, 4 Nov 2025
  2. v5 first release 5.0.0, 5 Dec 2024
  3. v4 first release 4.0.0, 24 Nov 2022
  4. v3 first release 3.0.0, 27 Oct 2021
  5. v2 first release 2.0.0, 16 Mar 2021
  6. v1 first release 1.0.0, 21 Jul 2020
  7. v0 first release 0.0.1, 20 Jul 2020

Recent releases

VersionPublished
6.0.27 Jan 2026
6.0.12 Jan 2026
6.0.04 Nov 2025
5.2.228 Jan 2025
5.2.12 Jan 2025
5.2.09 Dec 2024
5.1.06 Dec 2024
5.0.15 Dec 2024
5.0.05 Dec 2024
4.3.010 Nov 2023
4.2.123 Oct 2023
4.2.021 Jul 2023
4.1.124 Feb 2023
4.1.023 Feb 2023
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>= 20
Runtimes
-
Unpacked size (npm)
360 kB
Dependencies (8)
lodash-esminimatch@babel/types@babel/parser@babel/traverse@babel/generatorparse-imports-exportsjavascript-natural-sort
Peer dependencies (5)
svelteprettier@vue/compiler-sfcprettier-plugin-svelteprettier-plugin-ember-template-tag
npm install @trivago/prettier-plugin-sort-imports
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@trivago/prettier-plugin-sort-imports@6.0.2/
  • unpkghttps://unpkg.com/@trivago/prettier-plugin-sort-imports@6.0.2/
  • esm.shhttps://esm.sh/@trivago/prettier-plugin-sort-imports@6.0.2
PackageWeekly downloadsGzipLast releaseModuleComparison
eslint-config-sheriff42k-3 months agoESM only-
eslint-import-resolver-typescript33m-3 months agoESM + CommonJS-
@ianvs/prettier-plugin-sort-imports1m-7 months agoCommonJS-
eslint-config-love84.8k-13 days agoESM only-
@oxlint/plugins2.4m-3 days agoESM + CommonJS-
eslint-plugin-typescript-enum55.5k-4 years agoCommonJS-
leasot18.9k-2 years agoESM only-
@typescript-eslint/types131.4m-3 days agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.