this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 11 lines 345 B view raw
1import { ensureDir } from "jsr:@std/fs@^1.0.15/ensure-dir"; 2import PostalMime from "npm:postal-mime@2.4.3" 3 4export default { 5 async email(msg: ReadableStream) { 6 await ensureDir("./data") 7 8 const email = await PostalMime.parse(msg); 9 await Deno.writeTextFile(`./data/email.json`, JSON.stringify(email, null, 2)); 10 } 11}