Console.text() – 代码执行时的短信提醒
<p><pre><code> 嗨,HN!我开发了 console.text() - 一个在特定代码路径在生产环境中执行时向你发送短信的工具。
这个想法来源于 Jason Goodison 的 YouTube 视频,讲述了微型SaaS产品。我在教程的泥潭中挣扎了几个月,所以我决定直接发布一些东西。
它的功能:
npm install @holler2660/console-text
const { init } = require("@holler2660/console-text");
init({ apiKey: 'ct_live_xxx' });
console.text('支付失败', { userId: '123' });
// → 短信将在 5-10 秒内到达
尝试一下: https://soorajdmg.github.io/Console-text/
为什么选择这个而不是 Sentry/PagerDuty?
这些工具非常适合团队使用。而这个工具则是为独立开发者和副项目设计的,旨在提供简单明了的警报,而无需繁琐的设置。如果你知道 console.log(),你就已经知道如何使用它。</code></pre>
查看原文
<p><pre><code> Hey HN! I built console.text() - a tool that texts you when specific code paths execute in production.
The idea came from Jason Goodison's YouTube video about micro-SaaS products. I'd been stuck in tutorial hell for months, so I decided to just ship something.
What it does:
npm install @holler2660/console-text
const { init } = require("@holler2660/console-text");
init({ apiKey: 'ct_live_xxx' });
console.text('Payment failed', { userId: '123' });
// → SMS arrives in 5-10 seconds
Try it: https://soorajdmg.github.io/Console-text/
Why this vs Sentry/PagerDuty?
Those are great for teams. This is for solo devs and side projects who want dead-simple alerts without the setup overhead. If you know console.log(), you already know how to use it.</code></pre>