Skip to content

ph1p/outer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

outer

npm

This package connects your node application to your slack or rocket.chat server and send your logs to specific channels or users.

rocket.chat

rocketchat

slack

slack

Options

Name Description
adapter rocket.chat or slack (default)
channel #channel or @username
alias alias for username (optional)
emoji avatar emoji (optional)

rocket.chat specific

Name Description
username username
password password
url URL from your rocket.chat server

slack specific

Name Description
token user token (https://api.slack.com/custom-integrations/legacy-tokens)

Example

const outer = require('outer');

// CONFIGURE ROCKET.CHAT LOGGER
const rocketChat = new outer({
    adapter: 'rocket.chat',
    url: 'https://chat.server.com',
    channel: '@username',
    emoji: ':smirk:',
    username: 'username',
    password: 'password'
});

// CONFIGURE SLACK LOGGER
const slack = new outer({
    // https://api.slack.com/custom-integrations/legacy-tokens
    token: 'xoxp-0000000000-00000000-000000000-00000000000',
    channel: '#random',
    alias: 'My custom username',
    emoji: ':smirk:'
});

rocketChat.log('Message from your *app*. Hi Rocket.Chat!');
slack.log('Message from your *app*. Hi Slack!');

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published