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.
@livecord/notify
Advanced tools
Do you need my help? Visit our Discord server.
Node Version: 16.15.0
npm i @livecord/notify --save
# or
yarn add @livecord/notify
const { Twitch } = require("@livecord/notify");
const twitch = new Twitch({
client: {
id: "YOUR_CLIENT_ID", // Your client ID
token: "YOUR_TOKEN_HERE", // https://dev.twitch.tv/docs/authentication/getting-tokens
},
interval: 60000 // check channels every (optional) (default: 60000 [60 seconds])
});
twitch.on("ready", (ready) => {
twitch.follow([ "clqu_" ]);
twitch.unfollow([ "clqu_" ]);
console.log("Twitch connected at: ", ready);
});
twitch.on("live", channel => {
console.log(channel.user_name + " is live!");
});
twitch.on("offline", channel => {
console.log(channel.user_name + " is offline!");
});
const { Twitch } = require("@livecord/notify");
Twitch.getToken("CLIENT_ID", "CLIENT_SECRET").then(token => {
console.log(token);
}).catch(err => {
console.log(err);
})
{
"id": "",
"user_id": "",
"user_login": "",
"user_name": "",
"game_id": "",
"game_name": "",
"type": "live",
"title": "",
"viewer_count": 0,
"started_at": "",
"language": "",
"thumbnail_url": "",
"tag_ids": [ "" ],
"is_mature": true
}
const { YouTube } = require("@livecord/notify");
const youtube = new YouTube({
interval: 60000, // check channels every 1000ms (1 second) (optional) (default: 60000 [60 seconds])])
useDatabase: true // use database to store videos (optional) (default: true)
});
youtube.on("ready", (ready) => {
youtube.subscribe("UC00_j4mtyaMbWX62JWBMmWA"); // Subscribe to a another channel
// For multiple: youtube.subscribe(["", ""]);
youtube.unsubscribe("UC00_j4mtyaMbWX62JWBMmWA"); // Unsubscribe to any added channels
// For multiple: youtube.unsubscribe(["", ""]);
console.log("Youtube connected at: ", ready);
});
youtube.on("upload", video => {
console.log("Youtube new video!", video);
})
{
"title": "",
"link": "",
"pubDate": "",
"author": "",
"id": "",
"isoDate": ""
}
FAQs
Notifier for YouTube and Twitch.
The npm package @livecord/notify receives a total of 0 weekly downloads. As such, @livecord/notify popularity was classified as not popular.
We found that @livecord/notify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.