v__VERSION__
Download
Three build formats, all produced from the same source. Pick the one that matches how you're consuming it.
Browser — plain <script> tag
anvl.global.js — minified IIFE, no build step needed.
Exposes a global
Download
Anvl object.
<script src="anvl.global.js"></script>
<script>
const node = Anvl.parse('#!aml\nfoo := 1;');
console.log(node.asInt());
</script>
ES Modules — bundlers & modern browsers
anvl.esm.js — for
Download
import, bundlers, or
<script type="module">.import { parse, write } from './anvl.esm.js';
const node = parse('#!aml\nfoo := 1;');
console.log(node.asInt());
CommonJS — Node require()
anvl.cjs — for Node projects using
Download
require().const { parse, write } = require('./anvl.cjs');
const node = parse('#!aml\nfoo := 1;');
console.log(node.asInt());
Full API reference is in the docs. This is alpha software — the format is fully documented, but expect the API surface to keep moving.