0.1.0 • Published 10 years ago

winston-pushbullet v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

winston-pushbullet

A Winston transport that outputs data using Pushbullet.

Usage

  var winston = require('winston');
  require('winston-pushbullet').Pushbullet;

  var logger = new (winston.Logger)({
    transports: [
      new winston.transports.Pushbullet(options)
    ],
    exitOnError: true
  });

  module.exports = logger;

Options can include the following. apikey is required.

  • apikey: apikey for the Pushbullet account that will recieve the notification.
  • level: Level of warning required for a notification to be sent off. Defaults to warn.
  • title Title of the notification. Defaults to 'Winston Notification'.
  • devices Devices to send the notifications too. As per the node-pushbullet-api module both device IDENs and device IDs can be used. If the deviceIden parameter is passed as a number it is treated as a device ID. It defaults to '' which means the notification will be sent to all devices on the account.

Dependencies

Winston

Pushbullet

Async

Author: Callum Loh

License: MIT