browser.runtime
browser.runtime
implementation in nodejs.
See also Native Messaging.
Usage
npm install browser.runtime
const runtime = const port = runtime portonMessage port
Transform streams
You can reuse low level transform streams to encode/decode messages:
const NativeEncoder NativeDecoder =
See tests.