Package Exports
- @dprint/dockerfile
- @dprint/dockerfile/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dprint/dockerfile) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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"));