
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
slack-webhooks-handler
Advanced tools
Manage incoming webhooks to send messages to Slack
# npm
npm install slack-webhooks-handler
# yarn
yarn add slack-webhooks-handler
// options object
{
url: 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX',
botName: 'MyAPP-CI'
}
All you need to do is prepare a POST endpoint in your API that will be used when configuring the webhook in your preferred version control hosting (Github, Gitlab, Bitbucket, etc.)
At the moment you have the main dispatcher (Dispatcher) and a factory function.
You can use the dispatcher alone to send a simple message (just text) or a custom one following the attachments structure, or you can rely on the factory function (currently only supports Github's release and issues events, more on the way...)
const { Dispatcher, factory } = require('slack-webhooks-handler')
const dispatcher = new Dispatcher(options);
const hook = factory('github');
const { attachments } = hook(payload);
dispatcher.withAttachments(attachments);
(async () => {
try {
await dispatcher.send();
}
catch (error) {
console.log(error);
}
})();
For more info about event payloads take a look at:
FAQs
Manage incoming webhooks to send messages to Slack
The npm package slack-webhooks-handler receives a total of 1 weekly downloads. As such, slack-webhooks-handler popularity was classified as not popular.
We found that slack-webhooks-handler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.