This package has been deprecated

Author message:

Package no longer supported. Use more flexible ipfs-provider instead.

window.ipfs-is-required

1.0.2 • Public • Published

window.ipfs-is-required

NPM JavaScript Style Guide

Prompt user to install IPFS Companion if window.ipfs is not available.

The IPFS Companion web extension provides a window.ipfs object to web pages you visit. This module will detects the presence of window.ipfs and if it isn't present, the user will be asked to install the web extension.

Usage

You can just add a script tag to your HTML file:

<script src='https://unpkg.com/window.ipfs-is-required/index.js' />

Or:

import ipfsIsRequired from 'window.ipfs-is-required'
 
ipfsIsRequired()

License

MIT © Henrique Dias

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i window.ipfs-is-required

    Weekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    49.8 kB

    Total Files

    5

    Last publish

    Collaborators

    • hacdias