Skip to content
JS
Package

sort-package-json

Sort an Object or package.json based on the well-known package.json keys

v4.0.0, 3 Jun 2026MITESM + CommonJSTypes: Bundled
$ npm install sort-package-json

Key numbers

As of 25 Sept 2026
Weekly downloads
2.5m
+29% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
7
Direct, from package.json
Last release
3 months ago
v4.0.0
GitHub stars
917
99 forks
Open issues / PRs
23 / 16
Contributors
-
Commits, last 52 weeks
19

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.6m (9 Jun 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.

2,533,793 downloads last week, 11,815,471 in the last month. The 12-month change of +29% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
8120 in total
Latest version
4.0.0, 3 Jun 20263 months ago
First published
9 Dec 2015
Last push to GitHub
3 Jun 2026113 days before the snapshot
Repository archived
No
Open issues
23
Open pull requests
16
Commits, last 52 weeks
19
Dependents on npm
-

Major versions

  1. v4 first release 4.0.0, 3 Jun 2026
  2. v3 first release 3.0.0, 4 Mar 2025
  3. v2 first release 2.0.0, 29 Sept 2022
  4. v1 first release 1.0.0, 9 Dec 2015

Recent releases

VersionPublished
4.0.03 Jun 2026
3.7.13 Jun 2026
3.7.02 Jun 2026
3.6.125 Jan 2026
3.6.014 Dec 2025
3.5.214 Dec 2025
3.5.18 Dec 2025
3.5.026 Nov 2025
3.4.02 Jul 2025
3.3.125 Jun 2025
3.3.023 Jun 2025
3.2.223 Jun 2025
3.2.18 May 2025
3.2.04 May 2025
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=22
Runtimes
-
Unpacked size (npm)
62 kB
Dependencies (7)
semvertinyglobbyis-plain-objdetect-indentdetect-newlinegit-hooks-listsort-object-keys
npm install sort-package-json
  • jsDelivrhttps://cdn.jsdelivr.net/npm/sort-package-json@4.0.0/
  • unpkghttps://unpkg.com/sort-package-json@4.0.0/
  • esm.shhttps://esm.sh/sort-package-json@4.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.