
Research
/Security News
Intercom’s npm Package Compromised in Ongoing Mini Shai-Hulud Worm Attack
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.
A typed IRC client library for node
Based on irc-upd. Includes irc color decoding based on irc-colors.js
npm install @ctrl/irc
import { IrcClient } from '@ctrl/irc';
const client = new IrcClient('irc.yourserver.com', 'myNick', {
channels: [],
port: 7000,
secure: true,
});
client.connect();
If you are connecting to a server with a self-signed certificate, opt out explicitly:
const client = new IrcClient('irc.yourserver.com', 'myNick', {
secure: true,
rejectUnauthorized: false,
});
If a server sends non-UTF-8 text, pass an explicit encoding. Encoding names are passed to
iconv-lite; leaving encoding unset uses UTF-8.
const client = new IrcClient('irc.yourserver.com', 'myNick', {
encoding: 'latin1',
});
Join a channel
client.join('#yourchannel yourpass');
Leave a channel
client.part('#yourchannel');
Send a message
// To channel
client.say('#yourchannel', 'hello');
// To user
client.say('nonbeliever', 'sup');
With typescript 4.1 template strings feature events can be fully typed.
// (from, message) parameters are typed via template strings matching `message#${string}`
client.addListener('message#yourchannel', (from, message) => {
console.log(from + ' => #yourchannel: ' + message);
});
Debugging - subscribe to the raw messages and see what events are being parsed and re-emitted
client.on('raw', message => {
console.log(message);
});
FAQs
Node irc client in TypeScript
The npm package @ctrl/irc receives a total of 404 weekly downloads. As such, @ctrl/irc popularity was classified as not popular.
We found that @ctrl/irc demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
/Security News
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.

Research
Socket detected a malicious supply chain attack on PyPI package lightning versions 2.6.2 and 2.6.3, which execute credential-stealing malware on import.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.