Socket
Socket
Sign inDemoInstall

@rexlabs/npm-hook-slack

Package Overview
Dependencies
245
Maintainers
25
Versions
1
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
0
decreased by-100%
Maintainers
25
Install size
18.4 MB
Created
Weekly downloads
 

Readme

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

Last updated on 09 Aug 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc