Sort Package JSON

Use this skill when the user wants to sort a package.json file alphabetically.

javimosch 71746b3 763 B Updated

File contents

sort-package-json Plugin

Sort package.json files alphabetically for consistent ordering in Node.js projects.

Commands

Sort

  • sort-package-json file sort — Sort package.json files

Basic

  • sort-package-json _ _ — Passthrough to sort-package-json CLI

Usage Examples

  • "Sort the package.json in this project"
  • "Run sort-package-json to organise dependencies"

Installation

npm install -g sort-package-json

Key Features

  • Sorts package.json keys alphabetically
  • Sorts dependencies, devDependencies, scripts, etc.
  • Consistent ordering across projects
  • Preserves JSON formatting and comments

javimosch/supercli/tree/main/plugins/sort-package-json/skills/quickstart commit 71746b30da

Frequently asked questions

npx skillmds@latest add javimosch/sort-package-json