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