Richie Bendall

Results 140 comments of Richie Bendall

@bluzi Any update on this?

@ackvf Instead of `String.fromCharCode(key.rawcode)` do `String.fromCharCode(key.keychar)`.

@ackvf It works for me. Check the version you have installed.

@ackvf Try this code: ```js const iohook = require("iohook") iohook.start() iohook.on("keypress", ({ keychar }) => console.log(`Key pressed: ${String.fromCharCode(keychar)}`)) ```

[`page.pdf`](https://pptr.dev/#?product=Puppeteer&version=v8.0.0&show=api-pagepdfoptions)

To fix this, we need to somehow differentiate between `.docx` and `.docm` which both have the same mime type, [`application/vnd.openxmlformats-officedocument.wordprocessingml.document`](https://www.iana.org/assignments/media-types/application/vnd.openxmlformats-officedocument.wordprocessingml.document).

We can just use Wasm. This way, it will always be supported in Node.js and browsers will support it too. https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm

@uhop Rust WASM supports those things and C++ simultaneously.

@uhop Most of the re2 binding logic has already been done in https://github.com/nickdesaulniers/rust-re2. All we need to do is add type declarations. https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html?highlight=exporting,struct#exporting-a-struct-to-js

https://stackoverflow.com/a/46620616/8384910