Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 567 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 567 Bytes

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