kumojin / favicon-loader Goto Github PK
View Code? Open in Web Editor NEWFor retrieving the favicon of a given website and displaying it
License: MIT License
For retrieving the favicon of a given website and displaying it
License: MIT License
Currently, the getFavicon
method does not allow changing the favicon provider, which is google.com by default. This could be changed by adding a second "options" parameter, so that we could call for example:
getFavicon('https://applecom'); // Uses the default google.com/s2/favicons provider
getFavicon('https://applecom', { provider: FAVICON_KIT })
Where FAVICON_KIT
would be an enumeration value, along with GOOGLE.
The dependencies are a bit old now, we can update them to something newer, and also lock them.
The favicon size is currently hardcoded into the URL.
This one is a bit tricky as we're relying a lot on DOM to make the thing work ๐ฌ
Update the nvm file and ensure the build is green
We should be able to:
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | @babel/plugin-proposal-class-properties |
These updates are awaiting their schedule. Click on a checkbox to get an update now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/main.yml
actions/checkout v4@692973e3d937129bcbf40652eb9f2f61becf3332
ubuntu 22.04
package.json
@babel/cli 7.24.8
@babel/core 7.24.9
@babel/plugin-proposal-class-properties 7.18.6
@babel/preset-env 7.24.8
@babel/preset-typescript 7.24.7
@types/jest 29.5.12
@typescript-eslint/eslint-plugin 7.16.1
@typescript-eslint/parser 7.16.1
awesome-typescript-loader 5.2.1
babel-jest 29.7.0
babel-plugin-add-module-exports 1.0.4
babel-preset-minify 0.5.2
eslint 8.57.0
eslint-plugin-import 2.29.1
eslint-plugin-n 14.0.0
eslint-plugin-prettier 5.2.1
eslint-plugin-promise 6.4.0
http-server 14.1.1
jest 29.7.0
jest-environment-jsdom 29.7.0
typescript 5.5.3
.nvmrc
node 20
from node 14 to node 18
Most notably: explain about the function failing Google s2 returns its default favicon (when the website has no favicon)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.