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
CSScombCoding style formatter for CSS
UnCSSRemoves unused CSS from stylesheets
csscssCSS redundancy analyzer

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted