# @dprint/toml

> Wasm module for dprint-plugin-toml.

Latest version **0.8.0** (published 2026-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dprint/toml
pnpm add @dprint/toml
yarn add @dprint/toml
bun add @dprint/toml
```

## Health

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

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.8.0 |
| Published | 2026-08-18 |
| First published | 2021-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 500.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 23 |
| Author | David Sherret |
| Maintainers | dsherret |
| Keywords | toml, code, formatter, dprint |

## Links

- npm: https://www.npmjs.com/package/@dprint/toml
- Repository: https://github.com/dprint/dprint-plugin-toml
- Homepage: https://github.com/dprint/dprint-plugin-toml#readme
- Issues: https://github.com/dprint/dprint-plugin-toml/issues
- npm.io page: https://npm.io/package/@dprint/toml

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 0.8.0 (latest) — 2026-08-18
- 0.7.0 — 2025-02-27
- 0.6.4 — 2025-01-04
- 0.6.3 — 2024-09-30
- 0.6.2 — 2024-05-27
- 0.6.1 — 2024-02-23
- 0.6.0 — 2024-01-25
- 0.5.4 — 2022-02-01
- 0.5.3 — 2021-11-01
- 0.5.2 — 2021-09-29
- 0.5.1 — 2021-09-01
- 0.5.0 — 2021-08-29
- 0.4.1 — 2021-08-02
- 0.4.0 — 2021-08-01
- 0.3.2 — 2021-08-01
- … 6 more at https://npm.io/package/@dprint/toml/versions

## README

# @dprint/toml

npm distribution of [dprint-plugin-toml](https://github.com/dprint/dprint-plugin-toml).

Use this with [@dprint/formatter](https://github.com/dprint/js-formatter) or just use @dprint/formatter and download the [dprint-plugin-toml Wasm file](https://github.com/dprint/dprint-plugin-toml/releases).

## Example

```ts
import { createFromBuffer } from "@dprint/formatter";
import { getPath } from "@dprint/toml";
import * as fs from "fs";

const buffer = fs.readFileSync(getPath());
const formatter = createFromBuffer(buffer);

console.log(formatter.formatText("test.toml", "key   =   5"));
```

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