Files
JairusSW f85b8c5146 Update and Refactor docs/assemblyscript-hello-world. Add WASI Demo in docs/assemblyscript_demo. (#5949)
* add: assemblyscript wasi demo

* refactor: assemblyscript-hello-world

* finalize changes

* edit .gitignore

* add README

* Add proper documentation
2023-06-15 13:23:56 +00:00

411 B

AssemblyScript WASI Demo

This demo shows some WASI features off such as System Time, User Input, Writing to the Console, and Random Numbers. The module @assemblyscript/wasi-shim as well as a wasi-enabled runtime are required.

Setup

Navigate to ./docs/assemblyscript_demo and run

npm install

Build the AssemblyScript demo file

npm run build

Run the WASI Demo

npm run demo