@dprint/sql
v0.2.0
Published
Wasm buffer for dprint-plugin-sql.
Downloads
5
Readme
@dprint/sql
npm distribution of dprint-plugin-sql which wraps sqlformat-rs.
Use this with @dprint/formatter or just use @dprint/formatter and download the dprint-plugin-sql WASM file.
Example
import { createFromBuffer } from "@dprint/formatter";
import { getBuffer } from "@dprint/sql";
const formatter = createFromBuffer(getBuffer());
console.log(
formatter.formatText("test.sql", "SELECT * FROM dbo.Something"),
);