@metamask/detect-provider

A tiny utility for detecting the MetaMask Ethereum provider, or any EIP 1193-compliant provider.