Socket
Book a DemoInstallSign in
Socket

@rexlabs/npm-hook-slack

Package Overview
Dependencies
Maintainers
25
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rexlabs/npm-hook-slack

listen for npm package hooks and report on them to Slack

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
3
-72.73%
Maintainers
25
Weekly downloads
 
Created
Source

npm-hook-slack

An example slack integration that listens to registry hook events on an npm-hook-receiver and posts about them in a Slack channel.

To run the integration, set the required environment variables then run the index file:

node index.js

All configuration is done with environment variables. These are the vars used:

variablemeaningrequired?default
SLACK_API_TOKENthe API token you generated in Slacky-
SLACK_CHANNELthe ID of the Slack channel to post to (not its name!)y-
SHARED_SECRETthe shared secret set up for the hooks you'll be receivingy-
PORTthe port number to listen onn6666
MOUNT_POINTthe path to mount the hook onn/incoming
SERVICE_NAMEused in loggingnhooks-bot
INFER_BOT_USERpost as the inferred bot user (bot needs to be in the channel!)n-

License

ISC

Keywords

npm

FAQs

Package last updated on 09 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts