motleyagency / playing-with-assemblyscript

Demonstrating the power of webassembly 🤠

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some AssemblyScript stuff

Simple example how to use WASM in node.js projects.

  1. run npm install or yarn;
  2. check out the code, index.js contains the node code that uses wasm files. assembly/index.ts contains the AssemblyScript code that is compiled to WebAssembly.
  3. Run npm run asbuild or yarn run asbuild to compile to code to webassembly.
  4. Run node index.js to see the magical "Hello, Motley" string to appear.

About

Demonstrating the power of webassembly 🤠


Languages

Language:JavaScript 54.0%Language:TypeScript 46.0%