Search
Code238
lastRunAt, }); if (items.length) console.email(items, `New from ${name} RSS`); return { name, items }; });
if (bookmarks && bookmarks.length > 0) { let emailHtml = bookmarksHtml(bookmarks); console.email({ html: emailHtml, subject: "[Raindrop] Your bookmarks since " + lastRunAt.split("T")[0],
}); let { text, subject } = await hnEmail({ posts }); if (posts.length) console.email(text, subject);}
let times = body.data.availability[reverse_date][0].times; if (times.some((time) => !!time.policy)) { console.email("Girafe have some availability"); } else { console.log(times);
export const untitled_xQPufWn7 = (() => { const email_testing = console.email( { html: "<h1 style=", font } - family, "Roboto",
) ).results[1].measurements.find((m) => m.parameter === "pm25").value; if (pm25 > 50) console.email(null, `AQI is ${pm25}, close your windows!`);};
}); if (refs?.length) { console.email({ html: refHtml(refs), }, "Val Town References");
export function pingMe() { incrementer += 1; console.email(`How are you? ${incrementer}`);}
// email yourself as easily as logging to the consoleexport let consoleEmailEx = (() => { console.email("message"); // any JSON object can be the message console.email({ html: "<h1>hello html emails!</h1>" }); // you can send HTML emails console.email({ hi: "there" }, "Subject Line"); // optional second arg is the subject line console.email({ html: "<b>hi!</b>", subject: "Subject accepted here too" });})();
export async function twitterAPIDownAlert() { if (twitterAPIDown.down) console.email( twitterAPIDown.reason, "Twitter API may be down!"