Search
Code238
Receive daily emails of reported congress trades by scheduling a call to @claytn.fetchCongressTradeReports((reports) => console.email(reports))*/
)} compared to a year ago`; // console.log(message); console.email( message, `Price summary for ${ticker} (${msToIsoDate(Date.now())})`
export function myFoo(name) { console.email("Testing email from val town " + name); return "hello --- " + myApi("x") + " name: " + name;}
}); let { text, subject } = await hnEmail({ posts }); if (posts.length) console.email(text, subject);}
export async function sendTime() { console.email(": nice to see you!");}
); if (updated.length > 0) { console.email( updated, updated.length === 1
// 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" });})();
}); let { text, subject } = await hnEmail({ posts }); if (posts.length) console.email(text, subject);}
console.error(`missing page: '${pageName}`); // FIXME: don't email for every 404 console.email( `request:\n\n'${JSON.stringify(req)}'`, `missing page: '${pageName}'` console.error(e); // FIXME: don't email for 'ignorable errors', e.g. validation / batch & then send console.email(e.message || e.toString(), `error on '${pageName}'`); const payload = zetaLayout( "500",
export let hiHello = (req, res) => { console.email(req.body.message, `message from ${req.body.page}`);};