Skip to main content

Module js

Module js 

Source
Expand description

JavaScript Code Generation - Transpiles KAIN AST to JavaScript

This module generates clean, modern JavaScript (ES6+) from a typed KAIN program. The generated JS can run directly in browsers or Node.js.

Key features:

  • JSX → DOM manipulation
  • Components → Functions returning DOM nodes
  • Clean, readable output
  • No runtime dependencies

Functions§

generate
Generate JavaScript source code from a typed program