mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 06:21:29 +00:00
PSON decoder example using namespaced imports
This commit is contained in:
19
examples/pson/README.md
Normal file
19
examples/pson/README.md
Normal file
@ -0,0 +1,19 @@
|
||||
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 `.wast` representations, run:
|
||||
|
||||
```
|
||||
$> npm run build
|
||||
```
|
||||
|
||||
Afterwards, to run the included test, do:
|
||||
|
||||
```
|
||||
$> npm test
|
||||
```
|
Reference in New Issue
Block a user