
Security News
Cline CLI npm Package Compromised via Suspected Cache Poisoning Attack
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.
slack-micro
Advanced tools
The goal of this project was to build a node.js client that can be dropped into serverless functions without requiring a massive dependency tree. This client covers two main scenarios: making requests and handling responses.
npm i slack-micro --save
slack('method name or url', {payload}) // returns a promise
let slack = require('slack-micro');
let message = {
unfurl_links: true,
channel: 'C1QD223DS1',
token: 'xoxb-12345678900-ABCD1234567890',
text: "I am a test message http://slack.com",
attachments: [{
text: "And here's an attachment!"
}]
}
// send message to any Slack endpoint
slack('chat.postMessage', message).then(response => {
// Success!
});
// respond to webhooks
slack('https://hooks.slack.com/services/T0000/B000/XXXX', message);
let slack = require('slack-micro');
slack.defaults = {
unfurl_links: true,
channel: 'C1QD223DS1',
token: 'xoxb-12345678900-ABCD1234567890'
};
let message = {
text: "I am a test message http://slack.com",
attachments: [{
text: "And here's an attachment!"
}]
};
// send message to any Slack endpoint
slack('chat.postMessage', message);
// event handler
slack.on('event name', [... 'event name',] callback)
// http server
slack.listen(port, 'path'); // return http server
// digester
slack.digest('JSON string' or {message})
let slack = require('slack-micro');
slack.on('/test', message => {
// handle the "/test" slash commands
});
slack.on('slash_commands', message => {
// handle all slash commands
});
slack.on('googlebot', message => {
// handle the outgoing webhooks trigger word "googlebot"
});
slack.on('googlebot', '/test', 'slash_commands', message => {
// handle multiple events
});
// Simple WebServer
slack.listen(3000, '/slack/incoming');
// AWS Lambda handler
exports.handler = (event, context, callback) => {
slack.digest(event.body); // parses the body
}
FAQs
A micro client to interact with Slack's Web API
The npm package slack-micro receives a total of 2 weekly downloads. As such, slack-micro popularity was classified as not popular.
We found that slack-micro 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
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.