npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

another-hipchat-notifier

v1.2.1

Published

Push notifications to a HipChat room

Downloads

5

Readme

Medallia HipChat Notifier

Synopsis

Push notifications to a HipChat room.

Prerequisites

  • NodeJS 4.X or higher
  • A HipChat API token for and admin access to your team room

Creating a HipChat Room Token

  1. Go to hipchat.com.
  2. Click "rooms".
  3. Click your room name.
  4. Click "tokens".

Installation

npm install -g another-hipchat-notifier

Configuration

  • Save the message to post to a text file
  • Prepare the configuration file as shown below:
{
  "req-body": {
    "from": "Jira Board Notifier",
    "message_format": "text",
    "color": "red",
    "notify": "true"
    ...
  },
  "settings": {
    "api-token": "...",
    "room": "Room Name"
  }
}

The req-body section follows the room notification API from HipChat.

Usage

As a binary

ahn --config=<config-file> --template=<template-file>

# For more options
ahn --help

As a module

You can create a template file or specify the string message.

Create the template.msg file

Hi {dev1} {dev2}

Use the plugin

var notify = require('another-hipchat-notifier');

var context = {
  dev1: '@Eze',
  dev2: '@Lucia'
};

// Option 1
notify('./config.json', './template.msg', context)
    .then(body => console.log("Done!"))
    .catch(err => console.error("Something wrong happened."));

// Option 2
notify('./config.json', 'Hi {dev1} {dev2}', context)
    .then(body => console.log("Done!"))
    .catch(err => console.error("Something wrong happened."));

// Option 3
var config = {...};
notify(config, 'Hi {dev1} {dev2}', context)
    .then(body => console.log("Done!"))
    .catch(err => console.error("Something wrong happened."));

Development

Run test

npm install
npm test

License & Copyright

This software is copyrighted 2016 by Medallia, Inc. and released under the MIT License.