{"library":"prettier-elastic","title":"prettier-elastic","description":"A fork of Prettier (v3.2.5) that customizes formatting for `var`, `let`, and `const` declarations by aligning variable names in multi-declaration statements. It provides an alternative style where commas appear at the start of continuation lines, aligning values vertically. The package supports all Prettier languages (JavaScript, TypeScript, CSS, HTML, etc.) and is maintained by medikoo. It tracks upstream Prettier releases and includes TypeScript type definitions. Key differentiator: solves dissatisfaction with Prettier's default declaration alignment, offering a more tabular format without plugins.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-elastic"],"cli":{"name":"prettier-elastic","version":null}},"imports":["import { format } from 'prettier-elastic'","import { check } from 'prettier-elastic'","import prettier from 'prettier-elastic'","import { formatWithCursor } from 'prettier-elastic'","import { resolveConfig } from 'prettier-elastic'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { format } from 'prettier-elastic';\n\nconst code = `var eloBar = require(\"elo-bar\"),\n  foo = require(\"foo\"),\n  otherThing = require(\"other-thing\");`;\n\nconst formatted = format(code, { parser: 'babel' });\nconsole.log(formatted);\n// Output:\n// var eloBar     = require(\"elo-bar\")\n//   , foo        = require(\"foo\")\n//   , otherThing = require(\"other-thing\");","lang":"typescript","description":"Demonstrates the core formatting difference: var declarations with aligned equals and comma-first line continuation.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}