21 lines
475 B
Markdown
Raw Permalink Normal View History

PSON decoder in WebAssembly
===========================
An [AssemblyScript](http://assemblyscript.org) example. Decodes a [PSON](https://github.com/dcodeIO/PSON) encoded buffer.
Instructions
------------
To build [assembly/pson.ts](./assembly/pson.ts) to an untouched and an optimized `.wasm` including their respective `.wat` representations, run:
```
2018-05-06 01:32:58 +02:00
$> npm run asbuild
```
Afterwards, to run the included [test](./tests/index.js):
```
$> npm install
$> npm test
```