Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joseluisq/assemblyscript-module-example

Small example of a WebAssembly module written in Typescript (AssemblyScript) and used from NodeJS.
https://github.com/joseluisq/assemblyscript-module-example

assemblyscript nodejs typescript webassembly

Last synced: 13 days ago
JSON representation

Small example of a WebAssembly module written in Typescript (AssemblyScript) and used from NodeJS.

Awesome Lists containing this project

README

        

# AssemblyScript Module Example

> Small example of a [WebAssembly](https://webassembly.org/) module written in Typescript ([AssemblyScript](https://github.com/AssemblyScript/assemblyscript)) and used from [NodeJS](https://nodejs.org/en/).

_This example was presented in [NodeJS Meetup Leipzig #6: WebAssembly and NodeJS](https://www.meetup.com/de-DE/NodeJS-Meetup-Leipzig/events/262224036/)._

## Install

```sh
yarn
```

## Usage

__1. Compile to WebAssembly__

```sh
yarn asbuild
```

__2. Run NodeJS test__

```sh
yarn test
```

## Contributions

[Pull requests](https://github.com/joseluisq/assemblyscript-example/pulls) and [issues](https://github.com/joseluisq/assemblyscript-example/issues) are welcome.

## License
MIT license

© 2019 [Jose Quintana](http://git.io/joseluisq)