| name | sort-package-json |
| description | Use this skill when the user wants to sort a package.json file alphabetically. |
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