Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jprochazk/twitch_irc

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jprochazk/twitch_irc - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

2

package.json

@@ -6,3 +6,3 @@ {

"name": "@jprochazk/twitch_irc",
"version": "0.11.0",
"version": "0.11.1",
"description": "Twitch chat client",

@@ -9,0 +9,0 @@ "license": "MIT",

@@ -28,9 +28,46 @@ # twitch_irc

```
$ npm i twitch_irc
$ npm install twitch_irc@npm:jprochazk/twitch_irc
```
ESM:
```ts
import * as TwitchIrc from "https://deno.land/x/twitch_irc/mod.ts";
// index.mjs
// or index.js, but with "type":"module" in package.json
import * as TwitchIrc from "twitch_irc";
const channel = /*...*/;
const nick = /*...*/;
const pass = /*...*/;
const client = new TwitchIrc.Client({
credentials: { nick, pass }
});
client.on("privmsg", ({ user, message }) => {
console.log(`${user.login}: ${message}`);
});
client.on("open", () => {
client.join(channel);
});
```
CommonJS:
```ts
// index.js
const TwitchIrc = require("twitch_irc");
const channel = /*...*/;
const nick = /*...*/;
const pass = /*...*/;
const client = new TwitchIrc.Client({
credentials: { nick, pass }
});
client.on("privmsg", ({ user, message }) => {
console.log(`${user.login}: ${message}`);
});
client.on("open", () => {
client.join(channel);
});
```
### Features

@@ -37,0 +74,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc