Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
25
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc