0.0.5 • Published 4 years ago

wasm-studio-utils v0.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

wasm-studio-utils

Overview

This package is WebAssemblyStudio subset that is intended to work on local environment.

Original Project: https://github.com/yurydelendik/wasm-studio-utils

Supprorted Features

  • Read/Write file contents in Project
  • Queue compilation task to online compiler service, and download built wasm file.

Supported Compile Target

  • WebAssembly

Available Languages

  • C/C++ (emscripten backend)
  • Rust

Build task sample

const { Service, project } = require("wasm-studio-utils");

(async function build() {
    const data = await Service.compileFiles([
        project.getFile("src/main.cpp"),
        ], "cpp", "wasm", "-O2");
    const outWasm = project.newFile("out/main.wasm", "wasm", true);
    outWasm.setData(data["a.wasm"]);
    const outJS = project.newFile("out/main.js", "javascript", true);
    outJS.setData(data["wasm_bindgen.js"]);
})();
0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago