Repository navigation
Make bun formatter a separate CLI tool for those who do not need a JS Runtime #45180
trymeouteh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Saw this post on reddit and I am quite impressed with all that Bun offers and like how it is becoming an all in one toolbox for JS/TS developers.
However one thing I like about
oxfmtis that yes it is designed for JS/TS users but it also allows you to format other things like JSON, JSONC, JSON5, YAML, TOML, Markdown, etc. And these formats are universal and used by programmers of all kinds, not just JS/TS programmers. Rust programmers, Go programmers, PHP programmers, Kotlin programmers, Swift programmers, Python programmers use JSON, TOML, Markdown. And why wouldn't a programmer want a formatter tool written in Rust with great performance and is feature rich!oxfmtis only a formatter, nothing more, whilebunis several tools on one and non-JS/TS programmers will not need a runtime, a JS blunder, etc.Please consider making the bun formatter its standalone tool. Not everyone is a JS/TS programmer and therefore will not need a JS runtime installed to code.
A way this can be achieved is that bun format can become its own CLI tool such as
ovenfmt. You can installovenfmtby itself. When you installbunit will always installovenfmtof your system if you do not have it yet. When you callbun fmtit will always callovenfmtand if it cannot findovenfmtit will respond with an error stating you need to installovenfmtAnd if the bun formatter becomes its own CLI tool, please release it as a
scoop,homebrew,apt,nix, andvfoxpackage for easy installation and automated updates.All reactions