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

slack-groups

v0.1.1

Published

Node.js module for updating Slack based on 3rd party services

Downloads

40

Readme

slack-groups

slack-groups is meant to update Slack group members based on 3rd party data. This can be used as either a library or a standalone service. While this repository is meant as a way to integrate multiple external services with Slack groups, the only integration at the moment is with OpsGenie.

Some Slack apps do not support updating Slack groups. For example, it is not possible to update a Slack group when an OpsGenie schedule changes. This scenerio is exactly where slack-groups comes in as you can define a map of OpsGenie groups to Slack groups.

Standalone Service

Install dependencies

npm i

Create config.js file

To use as a standalone service, you first should copy the file config.example.js to config.js and modify the values to fit your needs.

Environment file (optional)

The service also supports using a .env file, which you must create manually. To enable debugging you can add the value DEBUG=* to the .env file.

Library

Install the dependency with npm i slack-groups

const slackGroups = require('slack-groups');
const runner = slackGroups({
	// See `config.example.js` for an example config to pass in
	...
});

runner.start();
// do stuff
runner.cancel();// cancel anytime. call `runner.start()` to restart. optional