Skip to content

Allow CLI usage when installed via npm #51

@pereorga

Description

@pereorga

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions