A slack message builder and sender

Usage no npm install needed!

<script type="module">
  import smpxSlack from 'https://cdn.skypack.dev/@smpx/slack';


Version Downloads License Dependencies Dev Dependencies


It is a set of utility functions for sending messages to Slack

Works both with legacy tokens and incoming webhooks.

Use a config.js file to set token/webhook or use the static functions in the class to set them before sending a message.

Priority is given to webhook if available else token is used.