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 | |
|---|---|
| Prettier | Opinionated code formatter |
| Oxfmt | Tools for JavaScript and TypeScript |
| CSScomb | Coding style formatter for CSS |
| UnCSS | Removes unused CSS from stylesheets |
| Malva | Fast formatter for CSS, SCSS, Sass and Less |
| lax | Collection of fast formatters |
| csscss | CSS redundancy analyzer |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.