mirror of
https://github.com/web3privacy/explorer-data.git
synced 2024-10-15 12:06:26 +02:00
14 lines
322 B
JavaScript
14 lines
322 B
JavaScript
import { W3PData } from "./w3pdata.js";
|
|
|
|
const w3pd = new W3PData()
|
|
await w3pd.init()
|
|
|
|
const outputDir = "./dist"
|
|
|
|
try {
|
|
await Deno.mkdir(outputDir)
|
|
} catch {}
|
|
|
|
const bundleFn = `${outputDir}/bundle.json`
|
|
await Deno.writeTextFile(bundleFn, JSON.stringify(w3pd.data, null, 2))
|
|
console.log(`Bundle writed: ${bundleFn}`)
|