@wasm-fmt/lua_fmt
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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"]
    }
}
If you cannot change the vite config, you can use another import entry
import init, { format } from "@wasm-fmt/lua_fmt/vite";

// ...

Credits

Thanks to:

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.6
57latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.6
57
0.0.5
11
0.0.4
0
0.0.3
0
0.0.2
0
0.0.1
0

Package Sidebar

Install

npm i @wasm-fmt/lua_fmt

Weekly Downloads

68

Version

0.0.6

License

MIT

Unpacked Size

1.53 MB

Total Files

10

Last publish

Collaborators

  • magic-akari