{"library":"prettier-plugin-sort-json","title":"Prettier Plugin Sort JSON","description":"A Prettier plugin that sorts JSON files alphanumerically by key. Version 4.2.0, actively maintained with regular releases. It supports custom sort orders, case-insensitive sorting, numeric sorting, and category-based sorting. Differentiators include deterministic key order for case-insensitive sorts, support for Prettier v3 (ESM), and TypeScript types. Requires Node.js >=18 and Prettier ^3.0.0.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-sort-json"],"cli":null},"imports":["import prettierPluginSortJson from 'prettier-plugin-sort-json'","import type { SortJsonOptions } from 'prettier-plugin-sort-json'","import { CategorySort } from 'prettier-plugin-sort-json'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// .prettierrc.js\nmodule.exports = {\n  plugins: ['prettier-plugin-sort-json'],\n  jsonSortOrder: '{\"name\": \"alphabetical\", \"version\": \"alphabetical\", \"*\": \"none\"}',\n};\n\n// Or use with CLI\n// prettier --write \"**/*.json\" --plugin prettier-plugin-sort-json","lang":"javascript","description":"Shows how to configure Prettier with the plugin and a custom sort order, sorting 'name' and 'version' keys alphabetically and leaving others unsorted.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}