Skip to content

Streaming IRC message parser for nodejs

Notifications You must be signed in to change notification settings

slate/slate-irc-parser

Repository files navigation

slate-irc-parser version downloads

Streaming IRC message parser.

pnpm add -D slate-irc-parser
import Parser from 'slate-irc-parser'
import net from 'net'

const client = net.connect({
  port: 6667,
  host: 'irc.freenode.org'
})

const parser = new Parser()

client.pipe(parser)

parser.on('message', (msg) => {
  console.log(msg)
})

MIT License