Détail du package

@dprint/toml

dprint320.9kMIT0.7.0

Wasm module for dprint-plugin-toml.

toml, code, formatter, dprint

readme

@dprint/toml

npm distribution of dprint-plugin-toml.

Use this with @dprint/formatter or just use @dprint/formatter and download the dprint-plugin-toml Wasm file.

Example

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"));