Used to initialize the inpage ethereum provider injected by MetaMask.
npm install metamask-inpage-provider -S
// Create a stream to a remote provider:
var metamaskStream = new LocalMessageDuplexStream({
name: 'inpage',
target: 'contentscript',
})
// compose the inpage provider
var inpageProvider = new MetamaskInpageProvider(metamaskStream)