{"library":"prettier-plugin-expand-json","title":"Prettier Plugin Expand JSON","description":"Prettier plugin that expands all JSON arrays and objects into multi-line format, ensuring consistent formatting for JSON and JSONC files. Current stable version 1.0.4, released with no dependencies. Engine requires Node >=20. Unlike default Prettier behavior which may collapse short objects, this plugin always forces multi-line output. Works with special files like package.json and composer.json, and can be combined with other JSON plugins (must be listed last).","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-expand-json"],"cli":null},"imports":["in .prettierrc: { \"plugins\": [\"prettier-plugin-expand-json\"] }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install --save-dev prettier prettier-plugin-expand-json\necho '{\"plugins\":[\"prettier-plugin-expand-json\"]}' > .prettierrc\necho '{\"a\":1,\"b\":[2,3]}' > test.json\nnpx prettier --write test.json\ncat test.json\n# Output:\n# {\n#   \"a\": 1,\n#   \"b\": [\n#     2,\n#     3\n#   ]\n# }","lang":"javascript","description":"Install plugin, configure Prettier, and format a JSON file to always expand arrays/objects to multi-line.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}