
Security News
AI Slop Is Polluting Bug Bounty Platforms with Fake Vulnerability Reports
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.
lua-fmt-fork
Advanced tools
This repo is forked from https://github.com/trixnz/lua-fmt to fix dependency issue.
lua-fmt
is pretty-printer for Lua code, written in TypeScript and deeply inspired by prettier. lua-fmt
provides an interface to format Lua code that conforms to a single and consistent standard.
While not implemented yet, the interface will be customizable to tailor the output to the user's preferences: linebreaks, string style, etc.
npm install lua-fmt
import {formatText} from 'lua-fmt';
console.log(formatText('local hello = "Hello"; print(hello .. " world!")'))
Format a single file:
luafmt test/lua-5.3.4-tests/calls.lua
Format a stream from stdin
:
cat test/lua-5.3.4-tests/calls.lua | luafmt --stdin
.luafmt
preferences filelua-fmt
uses jest for automated testing.
Among the user-created tests in the test/
folder, a copy of the lua-5.3.4
tests are executed after formatting to ensure the code remains syntactically correct after formatting. For this reason, please do not modify the lua-5.3.4-tests
folder unless updating with new tests from the official Lua tests. To run these tests, lua53
is expected to be available on the PATH
.
When contributing changes, please consider writing tests to ensure they do not regress.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Format Lua code
The npm package lua-fmt-fork receives a total of 4 weekly downloads. As such, lua-fmt-fork popularity was classified as not popular.
We found that lua-fmt-fork demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.
Research
Security News
The Socket Research team investigates a malicious Python package disguised as a Discord error logger that executes remote commands and exfiltrates data via a covert C2 channel.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.