bnny

0.10.0 • Public • Published

bnny

A WebAssembly assembler written in Poetry

Usage

$ npm i -g bnny
$ bnny my_program.wast -b my_program.wasm

Usage in Javascript

const bnny = require("bnny")

bnny('(module)').then((wasm) => {
  console.log("Output size:", wasm.byteLength, "bytes")
})

Usage in Poetry

include "bnny/bnny.poem" bnny\

export "init" init
  var wasm = bnny\assemble "(module)"
  if wasm
    var size = size_of wasm
  else
    var err = bnny\error

Dependents (0)

Package Sidebar

Install

npm i bnny

Weekly Downloads

0

Version

0.10.0

License

ISC

Unpacked Size

90.8 kB

Total Files

9

Last publish

Collaborators

  • poeticandroid