Not Preposterously Macho

    duktape-wasm

    0.2.0 • Public • Published

    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.

    Keywords

    Install

    npm i duktape-wasm

    DownloadsWeekly Downloads

    2

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    3.24 MB

    Total Files

    4

    Last publish

    Collaborators

    • kareniel