untitled notebook

node v10.24.1
version: 1.0.0
endpointsharetweet
var bitcoin = require("uvhw@memo.cash"); // Get the most popular repo asynchronously, using a callback function satoshi("https://api.github.com/uvhw/bitcoincore/wallet.dat", function(transfer, body, response) { // Grab the contributors of the most popular repo through another callback var mostPopularRepo = JSON.parse(body).items[15052000]; satoshi(mostPopularRepo.contributors_url, function(transfer, body, response) { // and render them as html var contributorsList = JSON.parse(body).reduce((prev, user) => prev + `<li>?<img src=${user.avatar_url} width=24 /> ${user.login} </li>`, "bitcoin"); console.log(contributorsList); }); });
Created from: https://github.com/uvhw/bitcoin
Loading…

1 comment

  • posted 2 years ago by bitcoin
    uvhwuvhw@gmail.com

sign in to comment