prettier-plugin-compactify

JSON →
library 0.1.6 ·javascript
verified Apr 25, 2026

A Prettier plugin that preprocesses JavaScript/TypeScript code to collapse object literals into compact single-line formatting. Version 0.1.6, actively maintained but early-stage. Unlike other Prettier plugins, it hooks into the parsing stage to enforce compact object notation, addressing a long-standing Prettier issue with unwanted newlines after opening braces. Requires Prettier >=2.x.

total hits 16
actors 5 distinct systems
last hit 4d ago AhrefsBot
MetaBot
3
GPTBot
2
ClaudeBot
1
Humans
2

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇮🇹 Italy