Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

irc-message-stream

1.1.0 • Public • Published

This package has been deprecated

Author message:

use irc-message 3.x instead

irc-message-stream Build Status

A tiny Stream interface for irc-message.

Installation

npm install irc-message-stream

Usage

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);

install

npm i irc-message-stream

Downloadsweekly downloads

7

version

1.1.0

license

BSD-2-Clause

repository

githubgithub

last publish

collaborators

  • avatar