UNPKG

@clickup/pg-microsharding

Version:
21 lines (18 loc) 673 B
#!/usr/bin/env node const { writeFileSync } = require("fs"); async function main(url) { let text = await fetch(url).then((res) => res.text()); text = text.replace(/^.*?\nBelow is the.*?\n\s+/s, ""); text = text.replace(/^#(#+)/m, "$1"); text = text.replace( /\.\.\/\.gitbook\/assets/g, "https://raw.githubusercontent.com/dimikot/ent-framework/refs/heads/main/gitbook/.gitbook/assets", ); writeFileSync(`${__dirname}/../README.md`, text); } main( "https://raw.githubusercontent.com/dimikot/ent-framework/refs/heads/main/gitbook/scalability/shards-rebalancing-and-pg-microsharding-tool.md", ).catch((e) => { console.error(e); process.exit(1); });