1.1.0 • Published 1 year ago

brunost v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Brunost (Brown Cheese)

Brunost is a JavaScript library that lets you send messages to various chat services, which is useful for sending notifications to yourself or your team. Oh also, it has a cool name and has minimal dependencies.

Currently supported services are:

  • Matrix

More services will be added in the future. If you have a suggestion for a service, please open an issue and I'll look into it.

Usage

First we need to install the library.

npm install brunost

Then we can use it in our code.

const brunost = require('brunost');

brunost.sendMatrixMessage("matrix.org", "token", "roomid", "Hello world!");

What about TypeScript? No problem!

import { sendMatrixMessage } from 'brunost';

sendMatrixMessage("matrix.org", "token", "roomid", "Hello world!");

API

sendMatrixMessage

sendMatrixMessage(server: string, token: string, roomid: string, message: string): Promise<void>

Sends a message to a Matrix room. Room ID can be found in the room settings (do not use room alias, aka #room:server.org).

1.1.0

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago