Generate Javascript bindings for whistle
Quickstart
install
deno install -Afq --unstable -n whistle_bindgen https://raw.githubusercontent.com/load1n9/whistle_bindgen/main/cli.ts
test.whi
export fn helloWorld(): i32 {
// prints Hello World to the console
printString("Hello World!")
return 0
}
compile
whistle_bindgen ./test.whi ./test.js
Usage
import { load, helloWorld} from "./test.js";
await load();
helloWorld();