Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/second-state/wasmedge-quickjs
A high-performance, secure, extensible, and OCI-complaint JavaScript runtime for WasmEdge.
https://github.com/second-state/wasmedge-quickjs
javascript rust wasmedge webassembly
Last synced: 13 days ago
JSON representation
A high-performance, secure, extensible, and OCI-complaint JavaScript runtime for WasmEdge.
- Host: GitHub
- URL: https://github.com/second-state/wasmedge-quickjs
- Owner: second-state
- License: apache-2.0
- Created: 2021-08-23T19:12:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-28T13:03:38.000Z (7 months ago)
- Last Synced: 2024-04-28T14:24:24.777Z (7 months ago)
- Topics: javascript, rust, wasmedge, webassembly
- Language: JavaScript
- Homepage:
- Size: 64.5 MB
- Stars: 448
- Watchers: 14
- Forks: 54
- Open Issues: 59
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Run JavaScript in WebAssembly
Checkout the [documentation](https://wasmedge.org/docs/category/develop-wasm-apps-in-javascript)
## Quick start
```
git clone https://github.com/second-state/wasmedge-quickjs
cd wasmedge-quickjscargo build --target wasm32-wasi --release
wasmedge --dir .:. target/wasm32-wasi/release/wasmedge_quickjs.wasm example_js/hello.js WasmEdge Runtime
Hello WasmEdge Runtime
```### Usage with custom ssl certs
```bash
$ wasmedge --dir .:. --dir /etc/ssl:/etc/ssl:readonly --env SSL_CERT_FILE="/etc/ssl/cert.pem" target/wasm32-wasi/release/wasmedge_quickjs.wasm example_js/wasi_https_fetch.js
```
substitute the value of `/etc/ssl` and `/etc/ssl/cert.pem` with the location of your cert folder and cert file