Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edamame-x/wasmex
Run wasm in multiple environments with the same code (Browser, Node.js, Deno, Bun, etc.)
https://github.com/edamame-x/wasmex
bun deno go javascript jsr nodejs rust typescript wasm zig
Last synced: 12 days ago
JSON representation
Run wasm in multiple environments with the same code (Browser, Node.js, Deno, Bun, etc.)
- Host: GitHub
- URL: https://github.com/edamame-x/wasmex
- Owner: EdamAme-x
- License: mit
- Created: 2024-10-24T06:53:58.000Z (13 days ago)
- Default Branch: main
- Last Pushed: 2024-10-25T00:57:12.000Z (12 days ago)
- Last Synced: 2024-10-25T03:00:03.259Z (12 days ago)
- Topics: bun, deno, go, javascript, jsr, nodejs, rust, typescript, wasm, zig
- Language: TypeScript
- Homepage: https://evex.land
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wasmex
Run wasm in multiple environments with the same code (Browser, Node.js, Deno,
Bun, etc.)```bash
npx jsr add jsr:@evex/wasmex
bunx --bun jsr add jsr:@evex/wasmex
deno add jsr:@evex/wasmex
``````ts
import { Wasmex } from "@evex/wasmex";// base64 or unit8array
const wasmSource = ...;const wasm = await Wasmex(wasmSource); // or await Wasmex(wasmSource, importObject)
// 3
console.log(
wasm.instance.exports.addOne(2),
);
```by [@EdamAme-x](https://x.com/amex2189) & [@evex-dev](https://evex.land)