A compiler that translates LambdaJSON — a pure functional programming language represented in JSON — into executable JavaScript functions. Current stable version is 1.1.8. The library is designed for embedding functional logic defined entirely in JSON, with no external dependencies and a small footprint. Key differentiators: no runtime, compiles to plain JS; pure functional semantics; good for dynamic expression evaluation in JSON-based systems. Release cadence is irregular.
npm install lambdajson-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates compiling a LambdaJSON program that sums the input with 2 and executing it.
Ensure project is ESM (type: 'module' in package.json) or use dynamic import.
Wrap compile in try/catch or validate program structure beforehand.
Create a new compiled function for each program.
Use compile() to get a function, then call it.
Change to 'type': 'module' in package.json or use dynamic import().
Use import { compile } from 'lambdajson-js' (named import).Ensure all variables used in the program are defined in the scope or passed as arguments.
No dependency data recorded yet.