Intro

Installable via npm install --save libp2p-bootstrap, it can also be used directly in the browser.

Download

The source is available for download from GitHub. Alternatively, you can install using npm:

$ npm install --save libp2p-bootstrap

You can then require() libp2p-bootstrap as normal:

const libp2PBootstrap = require('libp2p-bootstrap')

In the Browser

libp2p-bootstrap should work in any ECMAScript 2018 environment out of the box.

Usage:

<script type="text/javascript" src="index.js"></script>

The portable versions of libp2p-bootstrap, including index.js and index.min.js, are included in the /dist folder. libp2p-bootstrap can also be found on unpkg.com under

Bootstrap

src/index.js

Emits 'peer' events on a regular interval for each peer in the provided list.

new Bootstrap(options: Object)

Extends EventEmitter

Parameters
options (Object = {})
Instance Members
start()
_discoverBootstrapPeers()
stop()