kareniel / duktape-wasm

🦆(WIP) Bindings to Duktape in the browser using WebAssembly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

duktape-wasm

Bindings to Duktape in the browser.

Planned:

  • An API for Duktape's debugger
  • An event loop (Probably libuv)
  • setTimeout, setInterval

Usage

var duktape = require('duktape-wasm')

var runtime = duktape()

runtime.on('ready', () => {
  runtime.eval('var a = 1;')
})

API

runtime.on(eventName)

Register an event listener.

  • ready: Called when the wasm module has finished loading.

runtime.eval(string)

Ask Duktape to evaluate a javascript string.

About

🦆(WIP) Bindings to Duktape in the browser using WebAssembly

License:MIT License


Languages

Language:C 99.8%Language:JavaScript 0.2%