detect-ethereum-providers
v1.0.0
Published
Returns list of all injected Ethereum providers
Downloads
22
Maintainers
Readme
detect-ethereum-providers
Micro library for detecting all injected Ethereum providers.
This library has no dependencies.
Usage
This library can be added to your project using NPM
npm install --save detect-ethereum-providers
Browser
<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>