Join Nostr
2024-12-01 18:39:13 GMT
in reply to

namosca on Nostr: Looks like there's Hono compress: import { compress } from 'hono/compress'; const app ...

Looks like there's Hono compress:

import { compress } from 'hono/compress';

const app = new Hono();
app.use(compress());


app.get('/file', async (c) => {
const file = await Deno.open('./path/to/your/file.txt');
return c.res.send(file);
});


Got it from perplexity.ai. I hope it's not BS