1.0.5 • Published 1 year ago

@revotechuet/wi-notification v1.0.5

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

WI-NOTIFICATION

I2g simple notification package

Build

npm version patch
npm publish
git push

How to use

npm install @revotechuet/wi-notification@latest

Init

const wiNotification = require('./index');
let wiNoti = new wiNotification({
    "user": "smtpuser",
    "password": "smtppasswd",
    "telegram": {
        "bot_token": "bot:token",
        "chat_id": "123456789"
    }
});

Email

wiNoti.sendMail({
    to: "buidanghoang@gmail.com",
    messageHtml: "this is html <b>CONTENT</b>",
    subject: "Hello"
});

Telegram

wiNoti.sendTelegramMessage({
    text: "This is test text"
})

Slack

wiNoti.sendSlackMessage({
    
})
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago