0.0.1 • Published 2 years ago

@f0i/dprint-motoko v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@f0i/dprint-motoko

npm distribution of motoko-format.

Use this with @dprint/formatter or just use @dprint/formatter and download the dprint-plugin-motoko WASM file.

Example

import { createFromBuffer } from "@dprint/formatter";
import { getBuffer } from "@f0i/dprint-motoko";

const formatter = createFromBuffer(getBuffer());

console.log(formatter.formatText("test.mo", "//Motoko Code ..."));