@dprint/dockerfile
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

@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 { getBuffer } from "@dprint/dockerfile";
import { createFromBuffer } from "@dprint/formatter";

const formatter = createFromBuffer(getBuffer());

console.log(formatter.formatText("test.dockerfile", "RUN      /bin/bash"));

Package Sidebar

Install

npm i @dprint/dockerfile

Weekly Downloads

243

Version

0.3.0

License

MIT

Unpacked Size

2.98 MB

Total Files

5

Last publish

Collaborators

  • dsherret