1.0.0 • Published 3 years ago

detect-ethereum-providers v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

detect-ethereum-providers

Micro library for detecting all injected Ethereum providers.

This library has no dependencies.

npm version

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>