https://github.com/hellomouse/node-irc-stream-parser
A streaming IRC parser
https://github.com/hellomouse/node-irc-stream-parser
irc nodejs parser stream
Last synced: 6 months ago
JSON representation
A streaming IRC parser
- Host: GitHub
- URL: https://github.com/hellomouse/node-irc-stream-parser
- Owner: hellomouse
- Created: 2018-07-18T19:41:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-20T03:32:12.000Z (over 7 years ago)
- Last Synced: 2025-08-08T17:22:04.581Z (6 months ago)
- Topics: irc, nodejs, parser, stream
- Language: JavaScript
- Size: 24.4 KB
- Stars: 3
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# irc-stream-parser
A streaming IRC parser
## Usage
```js
const Parser = require('irc-stream-parser');
const tls = require('tls');
let socket = tls.connect(6697, 'irc.freenode.net');
let parser = new Parser();
socket.pipe(parser).on('data', data => console.log(data));
socket.write(`NICK test${Math.floor(Math.random() * 1e+4)}\r\n`);
socket.write(`USER testing 0 * :irc-stream-parser example\r\n`);
```