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.
IYoutube is the ultimate dirty Youtube API Client covering the most Parts of the unofficial YoutubeI API.
In order to use this Libary you have to implement an Storage Adapter and an HTTPClient Adapter. These Adapters must implement the according interfaces (StorageAdapter & HTTPClient). You can find two sample Adapters for the common Node Packages in the Test Folder.
For most parts, this should be enough for use. So just include them like in the Test File and install the according Packages (node-fetch)
Currently, the entire Library requires you to be Authenticated. You can just use the Authenticator to create the needed Tokens.
var ytClient = YOUR_INSTANCE_OF_IYOUTUBE;
await ytClient.init();
//Check if there needs to be a relogin
if(ytClient.authenticator.requiresLogin()) {
//Aquire a new Device and Login Code
var codes = await ytClient.authenticator.getNewLoginCode();
console.log("User Code: " + codes.userCode);
/*❗Enter the User Code at https://google.com/device and Login
This will resolve the loadTokensWithDeviceCode Promise and you are now authenticated */
await ytClient.authenticator.loadTokensWithDeviceCode(codes.deviceCode);
/* The Authenticator will save it's tokens in IYoutubeTokens.json */
}
//Do your calls to the API
var list = await ytClient.search("test", SearchType.VIDEO);
//Load the next Results
list.loadFurther(); /* Returns the new Results */
//All Results
list.results
//End reached
list.endReached
Searches and Playlist Video Lists are using the Continuated List format. You have to load the next Results if you want to expand the list. You can also check if the list is at it's end
You can find the current TODO list here
FAQs
The ultimate unofficial YouTube API Client for Javascript
The npm package iyoutube receives a total of 14 weekly downloads. As such, iyoutube popularity was classified as not popular.
We found that iyoutube 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.