LAUX is a superset of Lua that transpiles to standard Lua, adding syntax sugar such as fat/thin arrow functions, decorators, real-time type checking, import/export statements, spread operators, and null-conditional operators. This package (v1.6.0) is a fork of the now-dead LAU project by Metamist, aiming to revitalize it with syntax and functionality changes. It is published on npm and used via a CLI tool (lauxc) after global installation. Release cadence is irregular; the package is actively maintained by the fork author. Key differentiators include workspace configuration files for merging multiple input files, decorators for function mutation, and compile-time type checking (with a performance caveat). It is primarily used in the Garry's Mod Lua ecosystem.
npm install laux-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the CLI globally, creates input/output directories, writes a LAUX file with a fat arrow function, transpiles it, and prints the resulting Lua code.
Use type checking only for development or non-hot paths, or disable it in production builds.
Define a decorator that internally chains multiple behaviors.
Use fat arrow (=>) if explicit 'self' is not desired, or ensure the function signature accounts for 'self'.
Refer to laux-compiler docs instead of LAU docs.
Run 'npm i -g laux-compiler' to install globally.
Ensure npm global bin directory is in your PATH, or run using 'npx lauxc'.
Create a 'lauxconfig.json' file in the root folder of your project.
Ensure type annotations match actual usage; disable type checking in production if not needed.
No dependency data recorded yet.