diff --git a/bma2kumu.js b/bma2kumu.js index b71d6dc..a1e3da7 100644 --- a/bma2kumu.js +++ b/bma2kumu.js @@ -1,5 +1,6 @@ import { - delayR // call a function with a random delay + args +, delayR // call a function with a random delay , log // console.log in .map or .then , concat // concat for reduce: [[1,2],3,[4],[5,6]].reduce(concat,[]) > [1,2,3,4,5,6] , only // only n element for array.filter @@ -40,7 +41,7 @@ console.log( ROOT`/wot/members` ) let members = await Promise.all( ( await BMA`/wot/members` ) .results - .filter( only(50) ) + .filter( only(args.limit) ) // .map( person=> ROOT`/wot/certified-by/${person.pubkey}` ) // .map( log() ) .map( person=> BMA`/wot/certified-by/${person.pubkey}` ) diff --git a/index.html b/index.html new file mode 100644 index 0000000..493e7cd --- /dev/null +++ b/index.html @@ -0,0 +1,4 @@ + +