mirror of
https://github.com/web3privacy/web
synced 2024-10-15 18:26:27 +02:00
18 lines
501 B
JavaScript
18 lines
501 B
JavaScript
const resp = await fetch("https://explorer-data.web3privacy.info/");
|
|
const data = await resp.json();
|
|
|
|
const respContribs = await fetch(
|
|
`https://api.github.com/repos/web3privacy/explorer-data/contributors`,
|
|
);
|
|
const respContribsData = await respContribs.json();
|
|
|
|
const explorer = {
|
|
projects: data.projects.length,
|
|
contributors: respContribsData.length,
|
|
};
|
|
|
|
await Deno.writeTextFile(
|
|
"./src/explorer.json",
|
|
JSON.stringify(explorer, null, 2),
|
|
);
|
|
console.log(`File ./src/explorer.json saved`);
|