dprint-plugin-dockerfile 0.5.0

A WIP dockerfile formatter for dprint.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# @dprint/dockerfile

npm distribution of [dprint-plugin-dockerfile](https://github.com/dprint/dprint-plugin-dockerfile).

Use this with [@dprint/formatter](https://github.com/dprint/js-formatter) or just use @dprint/formatter and download the [dprint-plugin-dockerfile Wasm file](https://github.com/dprint/dprint-plugin-dockerfile/releases).

## Example

```ts
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"));
```