0.1.0 • Published 7 months ago

@wasm-fmt/lua_fmt v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Test

Install

npm

npm install @wasm-fmt/lua_fmt

jsr.io

npx jsr add @fmt/lua-fmt

Usage

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

await init();

const input = `print "Hello World"`;

const formatted = format(input, "main.lua");
console.log(formatted);

For Vite users:

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

{
    "optimizeDeps": {
        "exclude": ["@wasm-fmt/lua_fmt"]
    }
}
import init, { format } from "@wasm-fmt/lua_fmt/vite";

// ...

Credits

Thanks to:

0.1.0

7 months ago

0.0.6

8 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago