Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including winston-nma with all npm packages installed. Try it out:

var winstonNma = require("winston-nma")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

winston-nma v0.0.3

Notify My Android transport for Winston

winston-nma is a log transport for Winston, independently developed. It allows you to send messages to your Android phone by using the Notify My Android service. As of this moment, it's a simple transport without a whole lot of functionality, but it'll do the trick.

How to use

You can easily use npm:

npm install winston-nme

Use the transport

You can use winston-nma like any other transport.

  var logger = new (winston.Logger)({
    transports: [
      new (winston.transports.NotifyMyAndroid)({ 'level': 'error', 'metadata': true, appName: 'My app', apiKey: 'your-api-key-here' })
  • level: the level you want to log (e.g. 'error', 'warn'). Defaults to error.
  • metadata: Whether or not to send the metadata. Uses util.inspect (default: false).
  • appName: The name of your app. This name shows up in the notifications.
  • apiKey: Your Notify My Android API key, which you can get on your control panel.

To do

This is an incomplete list.

  • Build in support for NMA's remaining rate-limiting setting


v0.0.2 / v0.0.3 - 30 September 2014

  • Published on npm
  • Built-in support for winston's metadata

v0.0.1 - 28 September 2014

  • Initial commit


winston-nma is available under the MIT license.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free