@liam-public/node-slack-notifier
v0.1.0
Published
Minimal Slack chat.postMessage client with block chunking. Zero runtime dependencies.
Readme
@liam-public/node-slack-notifier
Minimal Slack chat.postMessage client with block chunking. Zero runtime
dependencies — just fetch.
import { createSlackClient } from '@liam-public/node-slack-notifier'
const slack = createSlackClient(process.env.SLACK_BOT_TOKEN!, logger)
await slack.postMessage('#alerts', 'Nightly digest', blocks)postMessage splits payloads over Slack's 50-block-per-message limit into
successive calls, and returns false (never throws) on the first failure so
a Slack outage is a soft failure, not an exception to unwind.
Extracted from @liam-public/shared-core so consumers that only need Slack
notifications no longer pull shared-core's puppeteer / undici transitive deps.
