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.
To use the api you need a api key from google and you can get that here
Once you have created the api key you need to enable the Youtube Data API v3
by clicking on the libraries tab and clicking on the Youtube Data API v3
then click on enable and your almost done!
You can join the official support discord here
const api = require("yt-api").VideoAPI;
const API = new api("PASTE_API_KEY_HERE");
API.getVideoByID("mj9KRKSvdbk" /*This must be a valid video id or else it will reject the promise*/).then(i => {
console.log("Here is the url: "+i.url);
}).catch(e => console.error(e));
//Returns Promise<VideoInfo>
API.searchForVideo("H.A.Y ncs").then(i => {
console.log("Here is the url: "+i.url);
}).catch(e => console.error(e));
//Returns Promise<SearchedVideoInfo>
/*NOTE: You can use the getVideoByID function to get more info about this video*/
API.searchForVideos("H.A.Y ncs").then(i => {
console.log("Here is the first result's video url "+i[0].url)
}).catch(e => console.error(e));
//Returns Promise<SearchedVideoInfo> as a array
FAQs
A light weight, easy, and super fast way of interacting with the YouTube Data API v3.
The npm package yt-api receives a total of 3 weekly downloads. As such, yt-api popularity was classified as not popular.
We found that yt-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.