https://github.com/slate/slate-irc
Node.js IRC client library
https://github.com/slate/slate-irc
Last synced: about 1 year ago
JSON representation
Node.js IRC client library
- Host: GitHub
- URL: https://github.com/slate/slate-irc
- Owner: slate
- License: mit
- Created: 2013-10-18T17:10:04.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2025-03-07T13:47:17.000Z (over 1 year ago)
- Last Synced: 2025-04-01T09:34:01.694Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 4.6 MB
- Stars: 206
- Watchers: 10
- Forks: 23
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-irc - slate-irc - Plugin system, simple api, arbitrary input stream, debug support. `JavaScript` (Frameworks / Self-hosted)
README
slate-irc [![version] ![downloads]][npm]
========
General purpose IRC client for nodejs. See **[documentation]** for the details.
- Plugin system
- Simple api
- Arbitrary input stream
- **[DEBUG]** support for easy debugging
```bash
pnpm add -D slate-irc-parser
```
```js
import irc from 'slate-irc'
import { connect } from 'node:tls'
const stream = connect({
port: 6697,
host: 'irc.libera.chat',
})
const client = irc(stream)
// logger
client.use((irc) => {
irc.stream.pipe(process.stdout)
})
client.pass('pass')
client.nick('tobi')
client.user('tobi', 'Tobi Ferret')
client.join('#express')
client.names('#express', (_err, names) => {
console.log(names)
})
```
To see more examples, please check the [`examples`](examples) directory.
--------
*slate-irc* is primarily distributed under the terms of the [MIT license]. See
[COPYRIGHT] for details.
[version]: https://badgen.net/npm/v/slate-irc
[downloads]: https://badgen.net/npm/dt/slate-irc
[npm]: https://npmjs.org/package/slate-irc
[documentation]: docs.md
[DEBUG]: https://github.com/visionmedia/debug
[MIT license]: LICENSE
[COPYRIGHT]: COPYRIGHT