File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
ruby-head-wasm-emscripten Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ This package distributes the latest `master` branch of CRuby.
6
6
7
7
## Installation
8
8
9
- For instaling ruby-head-wasm-emscripten, just run this command in your shell:
9
+ For installing ruby-head-wasm-emscripten, just run this command in your shell:
10
10
11
11
``` console
12
12
$ npm install --save ruby-head-wasm-emscripten@latest
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ This package distributes the latest `master` branch of CRuby.
6
6
7
7
## Installation
8
8
9
- For instaling ruby-head-wasm-wasi family, just run this command in your shell:
9
+ For installing ruby-head-wasm-wasi family, just run this command in your shell:
10
10
11
11
``` console
12
12
$ npm install --save ruby-head-wasm-wasi@latest
@@ -51,16 +51,15 @@ $ node --experimental-wasi-unstable-preview1 index.node.js
51
51
52
52
## Quick Start (for Browser)
53
53
54
- In browser, you need a WASI polyfill
55
- See [ the example project] ( https://github.com/ruby/ruby.wasm/tree/main/packages/npm-packages/ruby-wasm-wasi/example ) for more details.
54
+ In browser, you need a WASI polyfill. See [ the example project] ( https://github.com/ruby/ruby.wasm/tree/main/packages/npm-packages/ruby-wasm-wasi/example ) for more details.
56
55
57
56
``` html
58
57
<html >
59
58
<script src =" https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@latest/dist/browser.umd.js" ></script >
60
59
<script >
61
60
const { DefaultRubyVM } = window [" ruby-wasm-wasi" ];
62
61
const main = async () => {
63
- // Fetch and instntiate WebAssembly binary
62
+ // Fetch and instantiate WebAssembly binary
64
63
const response = await fetch (
65
64
// Tips: Replace the binary with debug info if you want symbolicated stack trace.
66
65
// (only nightly release for now)
Original file line number Diff line number Diff line change 1
1
# Example for ruby-wasm-wasi
2
2
3
- This is a simple example of how to use the ` ruby-wasm-wasi ` faimily packages
3
+ This is a simple example of how to use the ` ruby-wasm-wasi ` family packages
4
4
5
5
## For browser
6
6
You can’t perform that action at this time.
0 commit comments