Skip to content

Latest commit

 

History

History

pad

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Example: Pad

Uses: @esmbly/transformer-flow, @esmbly-transformer-wasm

Summary

This example shows how a string pad program can be transformed to TypeScript, AssemblyScript and WebAssembly by chaining @esmbly/transformer-flow and @esmbly/transformer-wasm.

# Input (Flow)
src/pad.js

# Output (TypeScript, AssemblyScript, and WebAssembly)
dist/add.ts
dist/add.as.ts
dist/add.wasm

Transforming the example

yarn run esmbly run

Running the tests

yarn test