{"library":"prettier-plugin-package-perfection","title":"Prettier Plugin Package Perfection","description":"A Prettier plugin that formats package.json files using the prettier-package-json library for consistent ordering and styling. Version 1.1.0 is the latest stable version, released August 2022 with limited update activity. It requires Prettier ≥2.x and Node.js ≥14.18.0. Differentiators include automatic key sorting, customizable order via options, and seamless integration with Prettier workflows, unlike standalone formatters.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-package-perfection"],"cli":null},"imports":["No explicit import needed; Prettier auto-loads plugins","// .prettierrc\n{ \"plugins\": [\"prettier-plugin-package-perfection\"] }","import type { PackagePerfectionOptions } from 'prettier-plugin-package-perfection'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install dependencies\n// npm install --save-dev prettier prettier-plugin-package-perfection\n\n// .prettierrc (JSON)\n{\n  \"plugins\": [\"prettier-plugin-package-perfection\"],\n  \"packagePerfection\": {\n    \"sortAz\": true,\n    \"sortScripts\": false\n  }\n}\n\n// Run Prettier on package.json\n// npx prettier --write package.json","lang":"javascript","description":"Install the plugin, configure it in .prettierrc, and format your package.json with Prettier.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}