A crude script for generating libp2p repo badges.
./badges.js <project> # where project is the name of the repo in the libp2p org
badges.js
#!/usr/bin/env node
/** | |
* Compares two routing table dumps from IPFS (`ipfs stats dht`). | |
* Run with node by specifying the path to the old and new dump files. | |
* | |
* 1. Get two routing table dumps | |
* | |
* ipfs stats dht > ./old.txt | |
* ipfs stats dht > ./new.txt | |
* | |
* 2. Run the comparison. This assumes same folder, but as long as the |
A crude script for generating libp2p repo badges.
./badges.js <project> # where project is the name of the repo in the libp2p org
badges.js
#!/usr/bin/env node
Assumptions:
{ | |
"repos": [{ | |
"login": "libp2p", | |
"repo": "js-libp2p", | |
"after": "2020-08-27" | |
}, { | |
"login": "libp2p", | |
"repo": "js-libp2p-bootstrap", | |
"after": "2020-08-27" | |
}, { |
I hereby claim:
To claim this, I am signing this object: