0.1.1 • Published 9 years ago

ipfs-railing v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

node-ipfs-railing

npm.io npm.io npm.io npm.io Dependency Status js-standard-style

Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list

Usage

var Bootstrap = require('ipfs-railing')

var options = {
    verify: true // to verify that we can indeed open a connection to that peer, before declaring it as peer found 
}

var peerList = <your custom peerList> || Bootstrap.default

var b = new Bootstrap(Bootstrap.default, options, swarm)

b.on('peer', function (peer) {
  // found a new peer
})