@reteps/dockerfmt

0.3.6 • Public • Published

@reteps/dockerfmt

Bindings around the Golang dockerfmt tooling. It uses tinygo to compile the Go code to WebAssembly, which is then used in the JS bindings.

import { formatDockerfile } from '@reteps/dockerfmt'
// Alternatively, you can use `formatDockerfileContents` to format a string instead of a file.

const result = await formatDockerfile('../tests/comment.dockerfile', { indent: 4, trailingNewline: true })

console.log(result)

Readme

Keywords

none

Package Sidebar

Install

npm i @reteps/dockerfmt

Weekly Downloads

97,201

Version

0.3.6

License

MIT

Unpacked Size

2.13 MB

Total Files

8

Last publish

Collaborators

  • reteps