0.3.1 • Published 6 years ago

waquire v0.3.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

waquire

A tool to bundle multiple .wa(s)t-files together.

Usage

To require a wast-file from another wast-file:

(module
  ;;@require $mem "./_memory.wast"
  ;; you can also require wast-files from node_modules:
  ;;@require $pack "package/functions.wast"

  (func $init
    (call $mem.alloc (i32.const 1024))
  )
  (export "init" (func $init))
)

To bundle from command line:

$ sudo npm install -g waquire
$ waquire main.wast > main.bundle.wast

To bundle from JavaScript:

const waquire = require("waquire");
const fs = require("fs");

fs.writeFileSync("./main.bundle.wast", waquire("./main.wast"));
0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago