Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
alexa-stats
Advanced tools
Scrapes [Alexa](http://www.alexa.com/) site to get traffic statistics and analytics for domain.
Scrapes Alexa site to get traffic statistics and analytics for domain.
npm install alexa-stats
const alexaStats = require('alexa-stats')
const domain = 'github.com'
alexaStats(domain)
.then(data => {
console.log(data)
/*
{
domain: 'github.com',
country: 'United States',
countryFlag: 'http://pcache.alexa.com/images/flags/us.968591e0050981be9fa94bd2597afb48.png',
globalRank: '58',
globalRankChange: '4',
countryRank: '46',
bounceRate: '44.00%',
bounceRateChange: '3.00%',
dailyPageViewsPerVisitor: '5.24',
dailyPageViewsPerVisitorChange: '3.50%',
dailyTimeOnSite: '6:19',
dailyTimeOnSiteChange: '3.00%',
searchVisits: '32.70%',
searchVisitsChange: '36.00%',
totalSitesLinkingIn: '79,903',
loadSpeed: '1.675 Seconds',
categories:
[ 'Computers > Software > Configuration Management > Tools > Git',
'Computers > Open Source > Project Hosting' ],
upstreamSites:
[ 'google.com 11.7%',
'stackoverflow.com 3.7%',
'google.co.in 2.8%',
'github.io 2.4%',
'youtube.com 2.2%' ],
downstreamSites: []
}
*/
})
.catch(error => {
console.error(error)
})
npm test
NOTE: This module will most likely break in the future when Alexa updates their DOM selectors.
MIT
FAQs
Scrapes [Alexa](http://www.alexa.com/) site to get traffic statistics and analytics for domain.
We found that alexa-stats 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.