Biomine - Javascript and Css formatter using biome

I’m releasing a library called biomine , a library for formatting JavaScript (TypeScript is also supported) and CSS code using the Biome Rust API. The library also supports formatting JavaScript code inside Phoenix LiveView Colocated Hook JS, but you need your project to upgrade phoenix_live_view to version 1.2 since the library uses the tag formatter feature.

Installation

Add biomine to your list of dependencies in mix.exs:

def deps do
  [
    {:biomine, "~> 0.1.0"}
  ]
end

The NIF ships as a precompiled binary via rustler_precompiled, so you do not need a Rust toolchain to use this library — the matching artifact for your OS, architecture, and NIF version is downloaded automatically at compile time.

Feel free to give feedback on what you like/dislike.

Thank you

5 Likes

Looks solid, @wingyplus! Good work!

2 Likes

Version 0.3.0 is now released on hex.pm. This version supports formatting CSS code in Colocated CSS!