Skip to main content

Installation

npm install apialerts-js

Usage

import { ApiAlerts } from 'apialerts-js';

const client = new ApiAlerts('YOUR-API-KEY');

// Simple notification
await client.send({ message: 'Deployment successful' });

// With all options
await client.send({
  message: 'New user signed up',
  channel: 'developers',
  link: 'https://dashboard.example.com/users/123',
  tags: ['signup', 'organic'],
});

Resources

GitHub Repository

Full documentation, examples, and source code.