X 归档 2022-12-29
I reimplemented napi in JS for use with WASM! This enables many native Node modules to run in browsers and other environments without a separate implementation for interfacing with JS (e.g. Rust's wasm-bindgen). Passes most of the @napi_rs tests! 🥳
https://github.com/devongovett/napi-wasm
https://github.com/devongovett/napi-wasm
我用 JS 重新实现了 napi,以便配合 WASM 使用!这让许多原生 Node 模块能在浏览器和其他环境中运行,而无需为对接 JS 单独实现一套(比如 Rust 的 wasm-bindgen)。通过了 @napi_rs 的大部分测试!🥳
https://github.com/devongovett/napi-wasm
https://github.com/devongovett/napi-wasm
