npm.io
0.0.1 • Published 3 years ago

@f0i/dprint-motoko

Licence
MIT
Version
0.0.1
Deps
0
Size
2.9 MB
Vulns
0
Weekly
0
Stars
5
DeprecatedThis package is deprecated

@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 ..."));