@dprint/biome
v0.7.1
Published
Wasm buffer for dprint-plugin-biome.
Downloads
45
Readme
@dprint/biome
npm distribution of dprint-plugin-biome which is an adapter plugin for Biome.
Use this with @dprint/formatter or just use @dprint/formatter and download the dprint-plugin-biome Wasm file.
Example
import { getBuffer } from "@dprint/biome";
import { createFromBuffer } from "@dprint/formatter";
const formatter = createFromBuffer(getBuffer());
console.log(
formatter.formatText("test.js", "console.log( 5 )"),
);