The documentation says:
The API components (including classes, methods, properties and event names) are similar to those used in Node.js.
While the API is nowhere compatible with Node.js, I see two solutions here:
- Rewrite the code so it is compatible.
- Mention in the docs that it is NOT compatible (aka "abandon")
Every new release Got needs monkey-patching because there's always something incompatible.
Electron in a nutshell 