oxfmt

VoidZero Inc. & Contributors · oxc-project.oxfmt

Oxfmt is a high-performance formatter for the JavaScript ecosystem.

Oxfmt is a high-performance formatter for the JavaScript ecosystem. - Supported languages JavaScript, JSX, TypeScript, TSX, JSON, JSONC, JSON5, YAML, TOML, HTML, Angular, Vue, CSS, SCSS, Less, Markdown, MDX, GraphQL, Ember, Handlebars - Built for scale Oxfmt targets large codebases and CI environments, with an emphasis on high throughput and predictable performance. It is built on the Oxc compiler stack and avoids architectural bottlenecks common in existing formatter implementations. Our benchmarks show Oxfmt to be approximately 30x faster than Prettier and 2x faster than Biome. - Batteries included - Oxfmt includes built-in features that typically require external Prettier plugins: - Import sorting - Tailwind CSS class sorting - package.json field sorting - Embedded formatting (CSS-in-JS, GraphQL, etc.) - Prettier-compatible Oxfmt integrates into existing Prettier-based workflows. The oxfmt CLI behaves similarly to Prettier by default, allowing adoption with minimal changes to scripts and tooling. Oxfmt matches Prettier’s JavaScript formatting. When migrating from recent versions of Prettier, formatting differences should not occur; any differences are considered bugs. Oxfmt currently passes approximately 95% of Prettier's JavaScript and TypeScript test suite. The remaining cases are niche scenarios, and we work with the Prettier team to converge on formatting over time. No additional dependencies or configuration needed.

winget install --id oxc-project.oxfmt --exact --source winget

Latest 0.54.0

Release Notes

Features

  • 3da77e0 oxfmt: Format parser:json5 files by oxc_formatter_json (#22990) (leaysgur)
  • c786f0d oxfmt: Format parser:jsonc files by oxc_formatter_json (#22913) (leaysgur)
  • 27a6db8 formatter_json: Implement jsonc variant (#22912) (leaysgur)

Bug Fixes

  • 2aedd52 oxfmt: Avoid JS promise rejects for all TSFN call sites (#23107) (leaysgur)
  • 01e0871 formatter,formatter_json: Handle PS/LS as line terminator (#22978) (leaysgur)
  • 23902d9 formatter_json: Handle CR only line breaks (#22977) (leaysgur)
  • 136b72b formatter_json: Use line_suffix for line comment outside array (#22931) (leaysgur)
  • 44e40fa formatter_json: Expand line comment inside array (#22911) (leaysgur)
  • 2c86896 formatter_json: Avoid example binary name collision (#22904) (camc314)

Documentation

  • cc69d8d formatter_json: Update AGENTS.md (#22981) (leaysgur)
  • 0490721 formatter_json: Update AGENTS.md (#22976) (leaysgur)
  • dadafe3 oxlint, oxfmt: Mention migrate skills in npm READMEs (#22965) (Boshen)
  • f88961a oxfmt: Annotate each config option with supported languages (#22953) (leaysgur)
  • 7e514bf formatter_json: Update AGENTS.md (#22930) (leaysgur)

Installer type: zip

Architecture Scope Download SHA256
x64 Download 70381A422464BF13ABD8D8210E0E0CDC2AEDC96DFE0A4D76A732DE547A3EA7A6
arm64 Download AF4D275856D205E6453CCB5FB0878F457EFA3FE1A0DE61732D3D73AAB175D013

Details

Homepage
https://oxc.rs/docs/guide/usage/formatter.html
License
MIT
Publisher
VoidZero Inc. & Contributors
Support
https://github.com/oxc-project/oxc/issues
Copyright
Copyright (c) 2024-present VoidZero Inc. & Contributors
Moniker
oxfmt

Tags

formatterjavascripttypescript

Older versions (20)

0.53.0
Architecture Scope Download SHA256
x64 Download 1773DD53DC4F4082378F0C12192BD3287EB52BCAAFFDD57EA888C0E8F912E0D2
arm64 Download 3137750C8899E3B112F1591AE288672EA64E2AB8A323652C742BBA3A7B392FAF
0.52.0
Architecture Scope Download SHA256
x64 Download F5D9CFB391F46A3CBC6E674AC76D90F15FB2D5CC25510CF8F0C2D0B88C00CEF5
arm64 Download D3A4AEB53FAF444784CE72BDA504AAD0FE67CD7130E8EFFE5CA6ECE14E5DCB54
0.51.0
Architecture Scope Download SHA256
x64 Download D5C3788CAFFD8ABB57E71C6E5C8B71755A674B0EBD1B2137C811D11EC728BB68
arm64 Download 5357839DE8195E77621F1C295376B1C7E151F8879FC7E10F31B1AA92B6E8754A
0.50.0
Architecture Scope Download SHA256
x64 Download BBB15C7986172F68E94B8316872C9BCF21049DBF1FEA01BA94924CFB5F9850B2
arm64 Download 818413044B0010F0AD61BC568DDBBCDC48AF06F8B83B1495FB74D793233D0F12
0.49.0
Architecture Scope Download SHA256
x64 Download E87A0E9ABFF3ED484BA3A7F63F47CA92305F0FA63521AC81A0D1B62FA3928B46
arm64 Download 5EFE0DC702B561089080D1C1DECFFBF56BDF1D6F301FB8E3C407F782C4D1C73C
0.48.0
Architecture Scope Download SHA256
x64 Download 21302B113379444F6D400A7A1F8BD3CD7A6DC21A239382E7D70A860F93F3AE42
arm64 Download D7C53D88F4DE49E3A4AC5C7FFB09443F4D04C13FD336187593C341C2DA98368D
0.47.0
Architecture Scope Download SHA256
x64 Download CFE593DACDF7F9866459DC0893D68C0B6CC483EC2BD692BE996E9A888D5C8F62
arm64 Download 261447DBCF02E7DAC5A3DE119D9DDEE9405BFC73753FE8044B9E9EB02F7D4083
0.46.0
Architecture Scope Download SHA256
x64 Download 2882647D85D6EF09EB467FD0B8463232E27B872DE282C6663B7144EA5423AAAA
arm64 Download CB4AF82779FA3021E8346BF98CCEE75F3C40E43B9A61819BBDADDD2BB1173183
0.45.0
Architecture Scope Download SHA256
x64 Download 96634D94668E951D6F02A84B2B2CC141D2C290F9BBB348C8A0EA1A533CECF2E6
arm64 Download 3D6FBC11FD0F62900DED60256929011B19A6BCA5311F44EE130E110BC6CB8C84
0.44.0
Architecture Scope Download SHA256
x64 Download 580D8AA63C670353A766AAA78C54DE0FB5C74B347A822EA1578148AB75E399A8
arm64 Download 5920EA5CC5C6D70A3003BCE926A4E82BFD04C7922341BADAA5572F901DF4114A
0.43.0
Architecture Scope Download SHA256
x64 Download A99D2F6A076A8955A2014F8A3DAD16146D4C67FDBD44A886091ED3891A384341
arm64 Download AAFCD89F355BE7F577B269CFB4C23FC9BE74963E5AD181476EA0CF9B8D27A173
0.42.0
Architecture Scope Download SHA256
x64 Download 8DD144E5152AAEF5D5191D963683F060582DF3D58A3C67E98A2BB9AF515A1D59
arm64 Download D88D825725A1AEF06AC2C9AF663D787464CEB56BDB514DD527C294A6885E4C23
0.41.0
Architecture Scope Download SHA256
x64 Download 187A8CBF96D2644536D0F1159B403A0732C548DDF2BA46B241566165C530C3BD
arm64 Download 727AB7BD3B13CB49483D3F4AE5FA4EC2F8D4FB2F9C342D6C0191383BDD937F29
0.40.0
Architecture Scope Download SHA256
x64 Download 0C1122EEFC5EB4597A607ECDC8155744ADAE5A18AED1F0B45416FB18A43952B7
arm64 Download 7A6AB939F779E4FAB35F59B1E9873E90EB5B8130FD473E70900D98221254506C
0.39.0
Architecture Scope Download SHA256
x64 Download FE9FE16866D4547411B0D38CD044AE25DA4C121ED18FCECC75D3B05B6F815AB0
arm64 Download 1D762582D761DFC2635F3AA364BD05510A30D19B5DE7016585853DD924E35CB6
0.36.0
Architecture Scope Download SHA256
x64 Download 85416EFA923320E97484C71D25A952B488921CB79C829FF2AB462612BCC8B1EB
arm64 Download 544DC778A7810A6649A786FEEE313124537873A55FFD36B2D69D17BE5FCDC4C1
0.35.0
Architecture Scope Download SHA256
x64 Download 1C116948C5B02CD57A6F34F1E577695DD04168A45A31515A7507A5EE75F5D7BD
arm64 Download 27A30E5F9B197AFDCB5620A170F5AE32FE6FB13DE0334AA6920CFD1F3416EF08
0.34.0
Architecture Scope Download SHA256
x64 Download ACCDFA251DBD52B6018B479DC9885FB892DB2BBBC290B8AA79C3AD7B7D33FC6E
arm64 Download 5343B85B2D9100EB5AB779681A72FAAE9BCBE7D4149DEE9E702FF06B0C2CCF29
0.33.0
Architecture Scope Download SHA256
x64 Download FD87800A3FB03BC5BFC373E8BE3B37F19A097070D9D656137EA744787CFC7845
arm64 Download FFCA31511ECC450E45EBA5C9918C866DE567888849F4CE2366B8D5110862422E
0.28.0
Architecture Scope Download SHA256
x64 Download FB212A86CEC43120AE8A246105E48210B9E7CAE9B905B173D375DA5ECE2EF332
arm64 Download 01EF009A38A21F17CB8FD0A8A68D3C697164772EF7E14CEFFC9C707C59944EA1