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

0.3.2 • 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 { 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"));

Package Sidebar

Install

npm i @dprint/dockerfile

Weekly Downloads

552

Version

0.3.2

License

MIT

Unpacked Size

2.26 MB

Total Files

5

Last publish

Collaborators

  • dsherret