lax – collection of fast formatters

lax is a collection of fast formatters that only adjust whitespace and leave everything else exactly as written.

It supports CSS, SCSS, Less, SQL, HTML, XML, SVG, Vue, Svelte, Astro, and other markup formats. The formatters use lossless tokenization and can be used as Rust libraries or dprint plugins.

This is free and open source software.

Key Features

  • Only modifies whitespace
  • Lossless tokenization preserves code
  • Handles unknown syntax and vendor extensions
  • Supports CSS, SCSS, and Less
  • Dialect-agnostic SQL formatting
  • Formats HTML, XML, SVG, Vue, Svelte, and Astro
  • Idempotent formatting produces stable output
  • Single-pass printing
  • Available as Rust libraries
  • dprint plugin support
  • Plugins published to npm

Website: github.com/bartlomieju/lax
Support:
Developer: Bartłomiej Iwańczuk
License: MIT License

lax is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

CSS Code Formatters
PrettierOpinionated code formatter
Oxfmt Tools for JavaScript and TypeScript
CSScombCoding style formatter for CSS
UnCSSRemoves unused CSS from stylesheets
MalvaFast formatter for CSS, SCSS, Sass and Less
laxCollection of fast formatters
csscssCSS redundancy analyzer

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted