runnerty-notificator-console
Version:
Runnerty module: Console notificator (old)
18 lines (14 loc) • 487 B
JavaScript
;
var Notification = global.NotificationClass;
class consoleNotificator extends Notification {
constructor(notification) {
super(notification);
}
send(notification) {
notification.mode = (notification.mode)?notification.mode.toString():"info";
notification.message = (notification.message)?notification.message.toString():"";
this.logger(notification.mode, notification.message);
this.end();
};
}
module.exports = consoleNotificator;