irc-message-stream

A tiny Strram interface around irc-message.

irc-message-stream

A tiny Stream interface for irc-message.

npm install irc-message-stream

var net = require("net"),
    MessageStream = require("irc-message-stream");
 
var messageStream = new MessageStream;
 
messageStream.on("line", function(line) {
    console.log("Got raw line: " + line);
});
 
messageStream.on("data", function(message) {
    console.log("Got parsed message: " + JSON.stringify(message));
});
 
var freenode_conn = net.connect(6667, "irc.freenode.net");
freenode_conn.pipe(messageStream);