{"id":19742174,"url":"https://github.com/wasm-fmt/lua_fmt","last_synced_at":"2026-03-08T20:04:25.995Z","repository":{"id":225177344,"uuid":"765274611","full_name":"wasm-fmt/lua_fmt","owner":"wasm-fmt","description":"A WASM Based Lua Formatter","archived":false,"fork":false,"pushed_at":"2025-04-10T16:46:24.000Z","size":164,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T18:08:37.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wasm-fmt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-29T15:58:13.000Z","updated_at":"2025-03-15T18:40:59.000Z","dependencies_parsed_at":"2024-04-10T19:47:20.754Z","dependency_job_id":"cf1b050f-b7c3-48c4-8757-eff798430afb","html_url":"https://github.com/wasm-fmt/lua_fmt","commit_stats":null,"previous_names":["wasm-fmt/lua_fmt"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-fmt%2Flua_fmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-fmt%2Flua_fmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-fmt%2Flua_fmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-fmt%2Flua_fmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wasm-fmt","download_url":"https://codeload.github.com/wasm-fmt/lua_fmt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248270929,"owners_count":21075797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T01:29:27.254Z","updated_at":"2026-03-08T20:04:25.990Z","avatar_url":"https://github.com/wasm-fmt.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test](https://github.com/wasm-fmt/lua_fmt/actions/workflows/test.yml/badge.svg)](https://github.com/wasm-fmt/lua_fmt/actions/workflows/test.yml)\n\n# Install\n\n[![npm](https://img.shields.io/npm/v/@wasm-fmt/lua_fmt?color=000080)](https://www.npmjs.com/package/@wasm-fmt/lua_fmt)\n\n```bash\nnpm install @wasm-fmt/lua_fmt\n```\n\n[![jsr.io](https://jsr.io/badges/@fmt/lua-fmt?color=000080)](https://jsr.io/@fmt/lua-fmt)\n\n```bash\nnpx jsr add @fmt/lua-fmt\n```\n\n# Usage\n\n## Node.js / Deno / Bun / Bundler\n\n```javascript\nimport { format } from \"@wasm-fmt/lua_fmt\";\n\nconst input = `print \"Hello World\"`;\n\nconst formatted = format(input);\nconsole.log(formatted);\n```\n\n## Web\n\nFor web environments, you need to initialize WASM module manually:\n\n```javascript\nimport init, { format } from \"@wasm-fmt/lua_fmt/web\";\n\nawait init();\n\nconst input = `print \"Hello World\"`;\n\nconst formatted = format(input);\nconsole.log(formatted);\n```\n\n### Vite\n\n```JavaScript\nimport init, { format } from \"@wasm-fmt/lua_fmt/vite\";\n\nawait init();\n// ...\n```\n\nOr use the `./bundler` entry with [vite-plugin-wasm](https://www.npmjs.com/package/vite-plugin-wasm)\n\n```javascript\nimport { format } from \"@wasm-fmt/lua_fmt/bundler\";\n```\n\n## Entry Points\n\n- `.` - Auto-detects environment (Node.js uses node, Webpack uses bundler, default is ESM)\n- `./node` - Node.js environment (no init required)\n- `./esm` - ESM environments like Deno (no init required)\n- `./bundler` - Bundlers like Webpack (no init required)\n- `./web` - Web browsers (requires manual init)\n- `./vite` - Vite bundler (requires manual init)\n\n# Credits\n\nThanks to:\n\n- The [StyLua](https://github.com/JohnnyMorganz/StyLua) project created by [@JohnnyMorganz](https://github.com/JohnnyMorganz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasm-fmt%2Flua_fmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwasm-fmt%2Flua_fmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasm-fmt%2Flua_fmt/lists"}