The krl-compiler package (v1.3.0, stable, low release cadence) is a compiler that converts KRL (Kinetic Rule Language, used in the Pico Labs ecosystem) to JavaScript. It supports both programmatic API and CLI usage. Key differentiators: synchronous compilation, optional AST input, inline source maps, and a --verify flag for validation. Unlike general-purpose compilers, it is specialized for KRL rulesets targeting the pico-engine runtime.
npm install krl-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic programmatic usage: importing the compiler and converting KRL source to JavaScript.
Wrap calls in try/catch blocks.
Use --no-inline-source-map instead.
Use import or switch to dynamic import().
Use --no-source-map to omit it.
Use default import: import compile from 'krl-compiler' or const compile = require('krl-compiler').Run npm install krl-compiler and ensure it's in node_modules.
Validate KRL code before compilation; use --verify flag for CLI.
No dependency data recorded yet.