@dprint/dockerfile
v0.3.2
Published
Wasm module for dprint-plugin-dockerfile.
Downloads
1,292
Maintainers
Readme
@dprint/dockerfile
npm distribution of dprint-plugin-dockerfile.
Use this with @dprint/formatter or just use @dprint/formatter and download the dprint-plugin-dockerfile Wasm file.
Example
import { getPath } from "@dprint/dockerfile";
import { createFromBuffer } from "@dprint/formatter";
import * as fs from "fs";
const buffer = fs.readFileSync(getPath());
const formatter = createFromBuffer(buffer);
console.log(formatter.formatText("test.dockerfile", "RUN /bin/bash"));