latest
m93a/irc.tsIt is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
47%
Published
8 months ago (0.6.1)
@csha/irc
A modernized fork of npm:irc
.
import { Client } from "@csha/irc"; const client = new Client("irc.libera.chat", "my-irc-bot", { channels: ["#my-irc-bot-test"], }); client.addListener("message", (from: string, to: string, message: string) => { console.log(from + " => " + to + ": " + message); client.say(to, "I'm a bot!"); }); client.addListener("pm", (from: string, message: string) => { console.log(from + " => ME: " + message); client.say("csha", "I'm a bot!"); });
Add Package
deno add jsr:@csha/irc
Import symbol
import * as irc from "@csha/irc";
Import directly with a jsr specifier
import * as irc from "jsr:@csha/irc";
Add Package
pnpm i jsr:@csha/irc
pnpm dlx jsr add @csha/irc
Import symbol
import * as irc from "@csha/irc";
Add Package
yarn add jsr:@csha/irc
yarn dlx jsr add @csha/irc
Import symbol
import * as irc from "@csha/irc";
Add Package
vlt install jsr:@csha/irc
Import symbol
import * as irc from "@csha/irc";
Add Package
npx jsr add @csha/irc
Import symbol
import * as irc from "@csha/irc";
Add Package
bunx jsr add @csha/irc
Import symbol
import * as irc from "@csha/irc";