Commit a3fba064edfdc5fa80b3fbf4968296f284f0febc
Update README.md
wanderer authored on 10/22/2017, 9:23:23 PMGitHub committed on 10/22/2017, 9:23:23 PM
Parent: 13dae27ceeb5fe7023f74c8ba13a8c3c1ac3ecfd
Files changed
README.md | changed |
README.md | |||
---|---|---|---|
@@ -10,9 +10,9 @@ | |||
10 | 10 … | # INSTALL | |
11 | 11 … | `npm install primea-wasm-container` | |
12 | 12 … | ||
13 | 13 … | # USAGE | |
14 | -``` | ||
14 … | +```javascript | ||
15 | 15 … | const WasmContainer = require('primea-wasm-container') | |
16 | 16 … | ||
17 | 17 … | // this class with get instantiated when a new wasm container instance is created | |
18 | 18 … | // its methods with be exposed to the wasm binary as `imports` | |
@@ -25,9 +25,8 @@ | |||
25 | 25 … | // regester the container with the a hypervisor instance | |
26 | 26 … | hypervisor.registerContainer(WasmContainer, { | |
27 | 27 … | env: HelloWorld | |
28 | 28 … | }) | |
29 | - | ||
30 | 29 … | ``` | |
31 | 30 … | ||
32 | 31 … | # LICENSE | |
33 | 32 … | [MPL-2.0](https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2)) |
Built with git-ssb-web