---
import Layout from "@layouts/BaseLayout.astro";
import fs from "node:fs";
const txtToHtml = (string: string) => {
return string
.replace(/[^\x0A\x20-\x7E]/g, "") //remove non-printable ascii chars, except newline
.replaceAll("&", "&")
.replaceAll("<", "<")
.replaceAll(">", ">")
.replaceAll('"', """)
.replaceAll("'", "'")
.replaceAll("\n\n", "
");
};
const license_file_contents = txtToHtml(
fs.readFileSync("./LICENSE", {
encoding: "utf8",
}),
);
---
LICENSE | badblocks.dev