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.
@davej/page-icon
Advanced tools
A library to find the highest resolution website logo for a given url.
This a Javascript implementation of http://stackoverflow.com/a/22007642/5076225.
Only supported on Node.js >=v4.2 because of promise support.
If support is desired for earlier versions, a global promise polyfill is required.
$ npm install --save page-icon
const pageIcon = require('page-icon');
const URL = 'https://www.facebook.com/';
pageIcon(siteUrl)
.then(function(icon) {
// do things with icon object
console.log(icon);
})
.catch(error => {
console.error(error);
});
});
{
source: 'https://www.facebook.com/apple-touch-icon.png',
name: 'www.facebook.com',
data: <Buffer 89 50 4e ... >,
size: 1779,
ext: '.png',
mime: 'image/png'
}
$ npm test
MIT
FAQs
Find the best icon for a web page
We found that @davej/page-icon 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.