@dprint/ruff
v0.3.9
Published
Wasm buffer for dprint-plugin-ruff.
Downloads
15
Readme
@dprint/ruff
npm distribution of dprint-plugin-ruff which is an adapter plugin for Ruff.
Use this with @dprint/formatter or just use @dprint/formatter and download the dprint-plugin-ruff Wasm file.
Example
import { createFromBuffer } from "@dprint/formatter";
import { getBuffer } from "@dprint/ruff";
const formatter = createFromBuffer(getBuffer());
console.log(
formatter.formatText("test.py", `print( "Hi!")`),
);