A simple and safe JavaScript subset transpiler designed for LLP (Low-Latency Platform) customization, currently at version 0.5.0. The project appears to be in early development with a single commit on GitHub. It provides a transpiler that converts a restricted subset of JavaScript to compatible code, focusing on safety and simplicity for embedded customization scenarios. Compared to more comprehensive transpilers like Babel or TypeScript, llp-script is minimal and targeted. The release cadence is unknown; the latest version is 0.5.0, and there is no recent activity.
npm install llp-scriptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of transpiling a file from llp-script subset to JavaScript, with error handling.
Update calls to transpile to use callback or promise: transpile(code, callback)
Replace default import with named import: import { transpile } from 'llp-script'Ensure input code uses only the supported subset: var, function, if, while, for, etc.
Run npm install acorn
Use import { transpile } from 'llp-script'Rewrite arrow function as a regular function expression.