#!/usr/bin/env node const fs = require('fs'); for (const page of [ { path: "a/fb", target: "'../../FramesBrowser/'+location.hash" }, // Apps/FramesBrowser { path: "s/dh", target: "'../../FramesBrowser/#_1|f=1|h='+location.hash.slice(1)" }, // Services/DataHTML ]) { const dirPath = `./${page.path}`; if (!fs.existsSync(dirPath)){ fs.mkdirSync(dirPath, { recursive: true }); } fs.writeFileSync(`${dirPath}/index.html`, `

Redirecting...

`); }