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.
npm install twitch.tv
var twitch = require("twitch.tv")
twitch("streams", function(err, res) {
console.log(res)
})
twitch(apiMethod[, options], callback)
Default options:
{
ua: "node.js twitch.tv by mediremi",
apiVersion: "3",
clientID: ""
}
options.baseUrl
-> Twitch.tv
API base URLoptions.ua
-> User agent sent to Twitch.tv
options.apiVersion
-> API version usedoptions.clientID
-> Client ID provided by Twitch.tv
. Used for rate-limitingoptions.auth
-> OAuth token provided by Twitch.tv
. Used for privileged requests (doc here)callback
is called with two parameters: err
and response
.
Examples:
twitch("channel", function(err, res) {
console.log(res)
})
twitch("games/top", function(err, res) {
if (err) return console.error(err)
console.log(res.top)
})
twitch("videos/top", {
ua: "get-cool-twitch-vids.com",
apiVersion: 1,
clientID: "axjhfp777tflhy0yjb5sftsil"
})
twitch("channels/44322889", {
apiVersion: 5,
clientID: "uo6dggojyb8d6soh92zknwmi5ej1q2"
})
// https://dev.twitch.tv/docs/v5/reference/users/#get-user
twitch("user", {
apiVersion: 5,
clientID: "uo6dggojyb8d6soh92zknwmi5ej1q2",
auth: "cfabdegwdoklmawdzdo98xt2fo512y"
})
FAQs
Library for Twitch.tv's REST API
The npm package twitch.tv receives a total of 2 weekly downloads. As such, twitch.tv popularity was classified as not popular.
We found that twitch.tv 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.