
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.