npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

slate-irc

0.9.5

@simnalamburt

npmHomeRepoSnykSocket
Downloads:6
$ npm install slate-irc
DailyWeeklyMonthlyYearly

slate-irc version downloads

General purpose IRC client for nodejs. See documentation for the details.

  • Plugin system
  • Simple api
  • Arbitrary input stream
  • DEBUG support for easy debugging
pnpm add -D slate-irc-parser
import irc from 'slate-irc'
import net from 'net'

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

const client = irc(stream)

client.pass('pass')
client.nick('tobi')
client.user('tobi', 'Tobi Ferret')

client.join('#express')
client.names('#express', (err, names) => {
  console.log(names)
})

MIT License