Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
youtube-validator
Advanced tools
##youtube-validator
nodejs module that validates wether a given url or id are valid youtube videos or not
####how to install npm install youtube-validator
####what is valid and invalid url/id?
var validUrl1 = 'youtube.com/watch?v=2XH5_qafR8k'
var validUrl2 = 'www.youtube.com/watch?v=2XH5_qafR8k'
var validUrl3 = 'http://www.youtube.com/watch?v=2XH5_qafR8k'
var validUrl4 = 'www.YOUTUBE.COM/watch?v=2XH5_qafR8k'
var validID = '2XH5_qafR8k'
var invalidUrl1 = 'random_stuff_here'
var invalidUrl2 = 'www.youtube.com/'
var invalidUrl3 = 'www.youtube.com'
var invalidUrl44 = 'www.youtube.com/watch?v=2XH5_qafR8k'.toUpperCase() //video ids are case sensitive
var invalidID = 'id_that_does_not_exist'
###how to use
var validator = require('youtube-validator')
//..
validator.validateUrl(url, function(res, err) {
if(err) //err
else
//res == url
})`
//...
validator.validateVideoID(id, function(res, err) {
if(err) //err
else
//res == url
})
FAQs
checks validity of youtube urls and ids
We found that youtube-validator 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.