@dprint/toml
TypeScript icon, indicating that this package has built-in type declarations

0.6.3 • Public • Published

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

Package Sidebar

Install

npm i @dprint/toml

Weekly Downloads

40,645

Version

0.6.3

License

MIT

Unpacked Size

884 kB

Total Files

5

Last publish

Collaborators

  • dsherret