Skip to content
yamlfmt / 0.0.1

yamlfmt 0.0.1

Install from the command line:
Learn more about npm packages
$ npm install @wasm-fmt/yamlfmt@0.0.1
Install via package.json:
"@wasm-fmt/yamlfmt": "0.0.1"

About this version

Test

Install

npm

npm install @wasm-fmt/yamlfmt

jsr.io

npx jsr add @fmt/yamlfmt

Usage

import init, { format } from "@wasm-fmt/yamlfmt";

await init();

const input = "- a\n- b\n";

const formatted = format(input, "sample.yaml");
console.log(formatted);

For Vite users:

Add "@wasm-fmt/yamlfmt" to optimizeDeps.exclude in your vite config:

{
    "optimizeDeps": {
        "exclude": ["@wasm-fmt/yamlfmt"]
    }
}
If you cannot change the vite config, you can use another import entry
import init, { format } from "@wasm-fmt/yamlfmt/vite";

// ...

Credits

Thanks to:

Details


Assets

  • yamlfmt-0.0.1.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all