# Install sort-package-json with npm

Sort an Object or package.json based on the well-known package.json keys. Version 4.0.0 via npm; verified 2026-06-03.

## Install

```sh
sudo av install npm:sort-package-json
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g sort-package-json
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:sort-package-json
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/sort-package-json>
- **Version:** 4.0.0
- **Source summary:** Sort an Object or package.json based on the well-known package.json keys
- **Homepage:** <https://github.com/keithamus/sort-package-json#readme>
- **Repository:** <https://github.com/keithamus/sort-package-json>
- **Upstream docs:** <https://github.com/keithamus/sort-package-json#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/sort-package-json/-/sort-package-json-4.0.0.tgz>
- **Issue tracker:** <https://github.com/keithamus/sort-package-json/issues>
- **Published:** 2026-06-03T20:49:42.090Z
- **Last updated:** 2026-06-03T20:49:42.090Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- sort-package-json (cli)
- sort-package-json (alias)

## Dependencies

- detect-indent
- detect-newline
- git-hooks-list
- is-plain-obj
- semver
- sort-object-keys
- tinyglobby

## Build dependencies

- @commitlint/cli
- @commitlint/config-conventional
- @eslint/js
- ava
- c8
- dot-prop
- esbuild
- eslint
- eslint-config-prettier
- eslint-plugin-n
- eslint-plugin-promise
- globals
- husky
- lint-staged
- prettier
- semantic-release
- tempy
- tstyche

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: prepare
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.0.0
- Package-manager updated: 2026-06-03
- Local data: ok
- Upstream repository: https://github.com/keithamus/sort-package-json
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for sort-package-json. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 4.0.0
- **Version Count:** 120
- **Maintainers:** keithamus
- **Author:** Keith Cirkel
- **Publisher:** GitHub Actions
- **Engines:** Node: >=22
- **Integrity:** sha512-6aYOlYI9AWioZ+rzu+4zKLmoFqJP0/fHDxrd7X04yqEibikY+5YVF0EYlyGn4v6X2PJY7yAUWV7oeP+i5rOm/g==
- **Shasum:** 7ec4eb9d81ad58ba16e90f134535af9aa2012697
- **Unpacked Size:** 63,103
- **File Count:** 0
- **Created At:** 2015-12-09T16:53:32.866Z
- **Latest Published At:** 2026-06-03T20:49:42.090Z
- **Modified At:** 2026-06-03T20:49:42.377Z


## Related links

- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [synp](https://www.automicvault.com/pkg/npm/synp/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, json, keys.
- [fixpack](https://www.automicvault.com/pkg/npm/fixpack/) - Both packages work with overlapping file formats or content types. Shared terms: cli, detect, detect-indent, detect-newline, developer.
- [typesync](https://www.automicvault.com/pkg/npm/typesync/) - Local package facts share a topical domain. Shared terms: cli, detect, detect-indent, developer, developer-tools.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
