Comment Comment by mayyue Can anyone get the actual JavaScript example posted to work with Node or any JS runtime for that matter?I tried it with Bun and I feel weird showing examples that don't seem to run.> $ npm install @wasmer/sdk```js import { Wasmer } from "@wasmer/sdk";let cowsay = Wasmer.fromRegistry("cowsay"); let instance = await cowsay.entrypoint.run({ args: "\"Hello world\"" }); let output = await instance.wait(); ```I also tried to use the <script> approach and I cannot get it working on a local dev server due to CORS. parent mayyue 2 years ago
I tried it with Bun and I feel weird showing examples that don't seem to run.
> $ npm install @wasmer/sdk
```js import { Wasmer } from "@wasmer/sdk";
let cowsay = Wasmer.fromRegistry("cowsay"); let instance = await cowsay.entrypoint.run({ args: "\"Hello world\"" }); let output = await instance.wait(); ```
I also tried to use the <script> approach and I cannot get it working on a local dev server due to CORS.