qjsc-kmp
v0.1.4
Published
Prebuilt qjsc-kmp: compiles JavaScript modules to quickjs-kmp bytecode.
Readme
qjsc-kmp
Prebuilt qjsc-kmp, the command line compiler of quickjs-kmp: it turns a JavaScript module into bytecode that quickjs-kmp's JsBytecode loads. Bytecode is bound to the QuickJS commit it was compiled with, so use the qjsc-kmp version equal to the quickjs-kmp version your app depends on.
npx qjsc-kmp -m -n home --strip-source -o home.bin home.jsimport { binaryPath } from "qjsc-kmp";
binaryPath(); // absolute path of the binary for this machineBinaries ship for macOS (arm64, x64) and Linux (x64, arm64; statically linked, any distribution) as the optional dependencies @qjsc-kmp/<platform>; npm installs only the one matching the machine. Elsewhere, build from source with ./gradlew :library:buildHostTools.
