
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
favicons-scraper
Advanced tools
A fully-typed wrapper for the favicons scraper API
The API returns a list of the favicons from any domain you give it.
If you want to implement a favicon scraper in your node (or bun) project, check out this scraper built in node. Its a full scraper instead of just a wrapper for an API. Node Scraper
import { getLogos } from 'favicons-scraper'
const url = 'https://facebook.com/user'
const urlLogos = await getLogos(url)
const domain = 'facebook.com'
const domainLogos = await getLogos(domain)
console.log(urlLogos)
console.log(domainLogos)
/*
[
{
size: { width: 120, height: 120 },
type: 'png',
mime: 'image/png',
src: 'https://z-m-static.xx.fbcdn.net/rsrc.php/v3/yO/r/_GHbZfYGSj-.png'
device: 'desktop'
}
]
*/
You can get the favicons from a specific device using the options.
const options = {
devices: 'mobile' // devices accepts a string containing all of the devices you want, eg: 'mobile desktop' for mobile and desktop favicons (default)
}
const domainLogos = await getLogos('web.dev', options)
/*
[
{
size: { width: 180, height: 180 },
type: 'png',
mime: 'image/png',
src: 'https://www.gstatic.com/devrel-devsite/prod/ve5ef9ac7b497e19ece9427facc78d0c59aaab7a2bc6a0f75fdae93f4ee589f67/web/images/touchicon-180.png',
device: 'mobile'
}...
]
*/
FAQs
A fully-typed api wrapper for a favicon scraper
The npm package favicons-scraper receives a total of 375 weekly downloads. As such, favicons-scraper popularity was classified as not popular.
We found that favicons-scraper 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.