hatp
The transpiler which transpile HaLang to Javascript, based on Acorn and Astring.
Usage
This package exports a convert
function as default.
;const config = ha: {} // Config for ha the acorn plugin. If none, use `true`. acorn: sourceType: 'module' // Config for acorn. astring: {} // Config for astring.;;
You can also use this package in CLI:
$ hatp -o built/
测试.ha -> built/测试.js
See more CLI info by hatp -h
.