Skip to content
This repository has been archived by the owner on Feb 12, 2020. It is now read-only.

Commit

Permalink
feat: beautiful things to init :)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Jan 15, 2018
1 parent 4af6c05 commit 7b6b461
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
package-lock.json
yarn.lock
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {EventEmitter} from 'events'
import {lookupPretty} from 'ipfs-geoip'
const EventEmitter = require('events').EventEmitter
const lookupPretty = require('ipfs-geoip').lookupPretty

/**
* It's a Stats Poller.
* @extends EventEmitter
*/
export default class StatsPoller extends EventEmitter {
module.exports = class StatsPoller extends EventEmitter {
/**
* Stats Poller constructor.
* @param {IpfsApi} ipfs
Expand Down
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "ipfs-stats",
"version": "1.0.0-beta1",
"description": "IPFS Stats Poller",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/hacdias/ipfs-stats.git"
},
"keywords": [
"ipfs",
"stats",
"poller",
"decentralized",
"events",
"geoip"
],
"author": "Henrique Dias <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/hacdias/ipfs-stats/issues"
},
"homepage": "https://github.com/hacdias/ipfs-stats#readme",
"dependencies": {
"ipfs-geoip": "^2.3.0"
}
}

0 comments on commit 7b6b461

Please sign in to comment.