Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
twitch-toolkit
Advanced tools
A set of tools to integrate with Twitch API, Twitch Chat and Twitch WebHooks.
A set of tools to integrate with Twitch API, Twitch Chat and Twitch WebHooks.
Using npm:
$ npm i --save twitch-toolkit
The library is composed by three modules:
You can use the toolkit just by creating a new instance with the configuration object:
const Twitch = require('twitch-toolkit');
let twitch = new Twitch(config);
The config object is described below:
Attr | Type | Description |
---|---|---|
logger | logger object | The logger instance. |
debug | Boolean | A flag to enable the debug mode. Default: false |
client_id | String | The Twitch.tv client ID to be used to access the services. |
client_secret | String | The Twitch.tv client secret to be used to use the private services. |
chatOptions | Object | The chat configuration object |
chatOptions.reconnect | Boolean | A flag to enable the auto-reconnect mode. Default: false |
chatOptions.ignoreSelf | String | A flag to ignore the bots own messages. Default: false |
chatOptions.username | String | The bot's username. |
chatOptions.password | String | The bot's OAuth Token. You can get it at http://twitchapps.com/tmi/ |
chatOptions.channels | Array[String] | The list os channels the bot will join and listen. |
chatOptions.chatCommands | Object | The object with the chatCommands, described below |
chatOptions.whisperCommands | Object | The object with the whisperCommands, described below |
chatOptions.wordTriggers | Object | The object with the wordTriggers, described below |
The API module will be created with the toolkit object and can be acessed by its name:
let twitchAPI = twitch.api;
The chat module will be created with the toolkit object and can be acessed by its name:
let twitchChat = twitch.chat;
The module will be ready to use but the user won't join the chat until you explicitly connect to it:
twitch.connect();
FAQs
A set of tools to integrate with Twitch API, Twitch Chat and Twitch WebHooks.
The npm package twitch-toolkit receives a total of 9 weekly downloads. As such, twitch-toolkit popularity was classified as not popular.
We found that twitch-toolkit 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.