I noticed this can be installed via npm, but the CLI is only available via the Go binary.
It would be helpful if the npm package also exposed the CLI via a bin entry in package.json, so it could be used directly with npx dockerfmt, or as a dev dependency in projects (with version pining in package.json).
This pattern is quite common in tooling, especially for NPM-based workflows and CI setups (i.e. that's what esbuild does).
I noticed this can be installed via npm, but the CLI is only available via the Go binary.
It would be helpful if the npm package also exposed the CLI via a bin entry in package.json, so it could be used directly with
npx dockerfmt, or as a dev dependency in projects (with version pining in package.json).This pattern is quite common in tooling, especially for NPM-based workflows and CI setups (i.e. that's what esbuild does).