A Prettier plugin and CLI tool for formatting Liquidsoap scripts (`.liq` files). Current stable version is 1.8.3. The package provides both a command-line utility for direct formatting and a Prettier plugin that integrates into existing workflows. It uses a JSON parser exported via js_of_ocaml from the Liquidsoap codebase. Regularly updated to match Liquidsoap language changes.
npm install liquidsoap-prettierVerified import paths — ran on the pinned version, not inferred.
Installation and basic usage of liquidsoap-prettier as both a Prettier plugin and standalone CLI.
Run `npm run dev:prepare` or install Liquidsoap via opam.
Use ESM import syntax or configure Prettier to handle ESM.
Update to v1.0+ and use proper plugin registration in .prettierrc.
Run `npm install -D liquidsoap-prettier` in your project.
Ensure the Liquidsoap version matches the parser version; update parser via `npm run dev:prepare`.
Use Node >=14 and import from 'liquidsoap-prettier' only.