ipfs-stats
1.2.4

Intro

Installable via npm install --save ipfs-stats, 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 ipfs-stats

You can then require() ipfs-stats as normal:

const ipfsStats = require('ipfs-stats')

In the Browser

Ipfs-stats should work in any ES2015 environment out of the box.

Usage:

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

The portable versions of ipfs-stats, including index.js and index.min.js, are included in the /dist folder. Ipfs-stats can also be found on unkpkg.com under

index

It's a Stats Poller.

Extends EventEmitter.

instance

index.prototype._pollManager

_pollManager(name: String, fn: Function): Void

Poll Manager.

Parameters

  1. name: String:  
  2. fn: Function:  

Returns

Void

index.prototype.stats

stats

Stats

index.prototype.stop

stop(opts: Array): Void

Stops the poller.

Parameters

  1. opts: Array (=allOptions):  

Returns

Void

index.prototype.start

start(opts: Array): Void

Starts the poller.

Parameters

  1. opts: Array (=allOptions):  

Returns

Void