detect-ethereum-providers
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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>

Package Sidebar

Install

npm i detect-ethereum-providers

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

23.2 kB

Total Files

22

Last publish

Collaborators

  • arseniyshestakov