Whenever I do deno doc file I get a colored version as usual. But if I have this code:
const p = Deno.run({
cmd: ["deno","doc","file"],
stdout: "piped"
});
const out = await p.output();
It keeps the colored version as it should. The issue is if I want to write the result to a file like:
const p = Deno.run({
cmd: ["deno","doc","file"],
stdout: "piped"
});
const uint8 = new TextEncoder().encode(await p.output());
Deno.writeFile("output",uint8);
I get a file that looks a little like: