
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A Node.js promise-based object-oriented Twitch client API. Twitchlie attempts to provide a familiar interface to Node.js developers as an alternate to tmi.js.
This software is in early development and interfaces are not well documented and are subject to change.
Not yet published to NPM.
const logger = require("jethro");
const Twitch = require("twitchlie");
const twitch = new Twitch({
username: "<twitch username>",
password: "<twitch oauth>",
clientId: "<twitch client id>",
clientSecret: "<twitch client secret>"
});
twitch.connect().then(function(d) {
logger("info", "Twitch:IRCSocket", "Connection protocol complete");
return twitch.join(["henchmun", "fuslie"]).then((users) => {
console.log(users);
});
}).catch(function(e) {
logger("error", "Twitch:API", "Fatal error occurred: " + e.message);
console.log("fatal error");
console.error(e);
process.exit(1);
});
twitch.on("socket:ping", function() {
logger("info", "Twitch:IRCSocket", "Ping received");
});
twitch.on("socket:pong", function() {
logger("info", "Twitch:IRCSocket", "Pong sent");
});
twitch.on("socket:connected", function() {
logger("info", "Twitch:IRCSocket", "Connected");
});
twitch.on("socket:authenticated", function(username) {
logger("info", "Twitch:IRCSocket", `Authenticated user: ${username}`);
});
twitch.on("socket:user_join", function(data) {
logger("info", "Twitch:IRCSocket", `${data.username} joined #${data.channel}`);
});
twitch.on("socket:user_leave", function(data) {
logger("info", "Twitch:IRCSocket", `${data.username} left #${data.channel}`);
});
twitch.on("socket:chat", function(data) {
logger("info", "Twitch:IRCSocket", `${data.user.username}: ${data.message}`);
});
twitch.on("socket:message", function(message) {
//console.log(message);
});
twitch.on("socket:chat", function(data) {
logger("info", "Twitch:IRCSocket", `${data.user.username}: ${data.message}`);
});
This software is provided as is and without warranty.
FAQs
Twitch API Client
The npm package twitchly receives a total of 0 weekly downloads. As such, twitchly popularity was classified as not popular.
We found that twitchly demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.