
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
favicon-fetch
Advanced tools
This package quickly gives you a URL for any website's favicon.
Uses the Icon Horse service to fetch the icon.
npm install favicon-fetch
or:
yarn add favicon-fetch
// First, import the package:
const faviconFetch = require('favicon-fetch')
// or:
import faviconFetch from 'favicon-fetch'
faviconFetch({ hostname: 'wikipedia.org' })
//-> The URI for an icon: https://icon.horse/icon/wikipedia.org
// Alternatively, use any URI:
faviconFetch({ uri: 'https://en.wikipedia.org/wiki/1986' })
//-> The URI for an icon: https://icon.horse/icon/wikipedia.org
The icon returned looks like this:
Currently, both the fallback functionality and the size
param require an apikey
(read about getting one here).
faviconFetch({
// hostname or uri
// This will return a different sized icon if available
size: 'small|medium|big',
// If no icon is reachable, a fallback image is shown. These two options control the colour
fallbackText: 'FFFFFF',
fallbackBg: '000000',
// If you have an Icon Horse API key
apikey: ''
})
FAQs
Get any website's favicon
We found that favicon-fetch 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
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.