Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details →
Socket
Book a DemoInstallSign in
Socket

node-irc

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-irc

An easy to use IRC socket wrapper

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

node-irc

node-irc is a socket wrapper for the IRC protocol that extends Node.js' EventEmitter. node-irc aims to be an efficient, extremely easy to use IRC library used to build bots and clients.

Get started

Install node-irc with npm.

npm install node-irc

Import node-irc.

var ircClient = require('node-irc');

Pass in the server, port, nickname and fullname as parameters to the constructor.

var client = new ircClient('irc.freenode.net', 6667, 'SomeNick', 'SomeFullname');

Add an event handler for what to do When the server is ready, like joining a channel and say something weird.

client.on('ready', function () {
  client.join('#Node.js');
  client.say('#Node.js', 'I see node people fart.');
});

Connect to the server

client.connect()

More details

See samples and wiki

Keywords

irc

FAQs

Package last updated on 26 Jan 2020

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