mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 07:02:13 +00:00
21 lines
475 B
Markdown
21 lines
475 B
Markdown
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:
|
|
|
|
```
|
|
$> npm run asbuild
|
|
```
|
|
|
|
Afterwards, to run the included [test](./tests/index.js):
|
|
|
|
```
|
|
$> npm install
|
|
$> npm test
|
|
```
|