Streaming IRC message parser.
pnpm add -D slate-irc-parserimport Parser from "slate-irc-parser";
import { connect } from "node:tls";
const parser = new Parser();
parser.on("message", (msg) => {
console.log();
console.log(msg);
});
const client = connect({
port: 6697,
host: "irc.libera.chat",
});
client.pipe(parser);To see more examples, please check the examples directory.
slate-irc-parser is primarily distributed under the terms of the MIT license. See COPYRIGHT for details.