Console.text() – 代码执行时的短信提醒

3作者: Noel046 天前原帖
<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&#x27;s YouTube video about micro-SaaS products. I&#x27;d been stuck in tutorial hell for months, so I decided to just ship something. What it does: npm install @holler2660&#x2F;console-text const { init } = require(&quot;@holler2660&#x2F;console-text&quot;); init({ apiKey: &#x27;ct_live_xxx&#x27; }); console.text(&#x27;Payment failed&#x27;, { userId: &#x27;123&#x27; }); &#x2F;&#x2F; → SMS arrives in 5-10 seconds Try it: https:&#x2F;&#x2F;soorajdmg.github.io&#x2F;Console-text&#x2F; Why this vs Sentry&#x2F;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>