Micro library for detecting all injected Ethereum providers.
This library has no dependencies.
This library can be added to your project using NPM
npm install --save detect-ethereum-providers
<script src="https://unpkg.com/detect-ethereum-providers/dist/detect-ethereum-providers.min.js"></script>
<script type="text/javascript">
const providers = getEthereumProviderIds();
if (providers.length) {
// handle providers
} else {
// no providers found
}
</script>