import {readFileSync,writeFileSync,readdirSync} from 'node:fs'; const web=new URL('../web/',import.meta.url),home=readFileSync(new URL('index.html',web),'utf8'); const header=home.match(/
[\s\S]*?<\/header>/)[0].replace(/ aria-current="page"/g,''); const footer=home.match(/