# oxfmt

> Formatter for the JavaScript Oxidation Compiler

Latest version **0.68.0** (published 2026-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install oxfmt
pnpm add oxfmt
yarn add oxfmt
bun add oxfmt
```

Provides the command `oxfmt`.

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.68.0 |
| Published | 2026-09-14 |
| First published | 2025-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^20.19.0 \|\| >=22.12.0 |
| Dependencies | 1 |
| Unpacked size | 8.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 22785 |
| Author | Boshen and oxc contributors |
| Maintainers | boshen |
| Keywords | formatter, javascript, oxc, oxfmt, prettier, typescript |

## Links

- npm: https://www.npmjs.com/package/oxfmt
- Repository: https://github.com/oxc-project/oxc
- Homepage: https://oxc.rs/docs/guide/usage/formatter
- Issues: https://github.com/oxc-project/oxc/issues
- Funding: https://github.com/sponsors/oxc-project
- npm.io page: https://npm.io/package/oxfmt

## Dependencies (1)

- [tinypool](https://npm.io/package/tinypool.md) 2.1.2

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.68.0 (latest) — 2026-09-14
- 0.67.0 — 2026-09-07
- 0.66.0 — 2026-09-01
- 0.65.0 — 2026-08-24
- 0.64.0 — 2026-08-18
- 0.63.0 — 2026-08-10
- 0.62.0 — 2026-08-03
- 0.61.0 — 2026-07-27
- 0.60.0 — 2026-07-21
- 0.59.0 — 2026-07-14
- 0.58.0 — 2026-07-06
- 0.57.0 — 2026-06-29
- 0.56.0 — 2026-06-22
- 0.55.0 — 2026-06-15
- 0.54.0 — 2026-06-08
- … 55 more at https://npm.io/package/oxfmt/versions

## README

<p align="center">
  <br>
  <br>
  <a href="https://oxc.rs" target="_blank" rel="noopener noreferrer">
    <picture>
      <source media="(prefers-color-scheme: dark)" srcset="https://oxc.rs/oxc-light.svg">
      <source media="(prefers-color-scheme: light)" srcset="https://oxc.rs/oxc-dark.svg">
      <img alt="Oxc logo" src="https://oxc.rs/oxc-dark.svg" height="60">
    </picture>
  </a>
  <br>
  <br>
  <br>
</p>

<div align="center">

[![MIT licensed][license-badge]][license-url]
[![Build Status][ci-badge]][ci-url]
[![Code Coverage][code-coverage-badge]][code-coverage-url]

[![Discord chat][discord-badge]][discord-url]
[![Playground][playground-badge]][playground-url]

[discord-badge]: https://img.shields.io/discord/1079625926024900739?logo=discord&label=Discord
[discord-url]: https://discord.gg/9uXCAwqQZW
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license-url]: https://github.com/oxc-project/oxc/blob/main/LICENSE
[ci-badge]: https://github.com/oxc-project/oxc/actions/workflows/ci.yml/badge.svg?event=push&branch=main
[ci-url]: https://github.com/oxc-project/oxc/actions/workflows/ci.yml?query=event%3Apush+branch%3Amain
[npm-badge]: https://img.shields.io/npm/v/oxfmt/latest?color=brightgreen
[npm-url]: https://npmx.dev/package/oxfmt/v/latest
[code-size-badge]: https://img.shields.io/github/languages/code-size/oxc-project/oxc
[code-size-url]: https://github.com/oxc-project/oxc
[code-coverage-badge]: https://codecov.io/github/oxc-project/oxc/branch/main/graph/badge.svg
[code-coverage-url]: https://codecov.io/gh/oxc-project/oxc
[playground-badge]: https://img.shields.io/badge/Playground-blue?color=9BE4E0
[playground-url]: https://playground.oxc.rs/

</div>

# ⚓ Oxc

The Oxidation Compiler is creating a suite of high-performance tools for JavaScript and TypeScript.

## Oxfmt

This is the formatter for oxc.

See [usage instructions](https://oxc.rs/docs/guide/usage/formatter).

Run

- `npx --yes oxfmt@latest` in your JavaScript / TypeScript codebase and see it complete in milliseconds. No configurations are required.
- `npx oxfmt@latest --help` for quick usage instructions.
- `npx skills add https://github.com/oxc-project/oxc --skill migrate-oxfmt` to install the [`migrate-oxfmt`](https://skills.sh/oxc-project/oxc/migrate-oxfmt) skill, then run `/migrate-oxfmt` to migrate from Prettier or Biome.
- See also [migrate from Prettier](https://oxc.rs/docs/guide/usage/formatter/migrate-from-prettier.html).

---
_Source: https://npm.io/package/oxfmt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
