CLI/API

VSN.js is small enough that most usage is just Engine + autoMount.

Engine

import { Engine } from "vsn";

const engine = new Engine();
engine.registerBehaviors(source);
engine.mount(document.body);

Parser

import { Parser } from "vsn";

const program = new Parser(source).parseProgram();

autoMount

import { autoMount } from "vsn";

autoMount();

Notes

There is no CLI yet—just the runtime API.