Skip to content

A module for creating a node style stream over a WebExtension port object.

License

Notifications You must be signed in to change notification settings

MetaMask/extension-port-stream

Repository files navigation

Extension Port Stream

A module for creating a Node-style stream over a WebExtension Runtime.Port object.

Usage

import PortStream from 'extension-port-stream'

extension.runtime.onConnect.addListener(connectRemote)
const portStream = new PortStream(remotePort)

// Enjoy!

Running tests

yarn test

About

A module for creating a node style stream over a WebExtension port object.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published