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
The dependencies are a bit old now, we can update them to something newer, and also lock them.
We should be able to:
from node 14 to node 18
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.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@babel/cli
, @babel/core
, @babel/preset-env
, @babel/preset-typescript
)@types/jest
, babel-jest
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
).github/workflows/main.yml
actions/checkout v4
ubuntu 22.04
package.json
@babel/cli 7.23.0
@babel/core 7.23.2
@babel/plugin-proposal-class-properties 7.18.6
@babel/preset-env 7.23.2
@babel/preset-typescript 7.23.2
@types/jest 29.5.5
@typescript-eslint/eslint-plugin 6.7.5
@typescript-eslint/parser 6.7.5
awesome-typescript-loader 5.2.1
babel-jest 29.5.0
babel-plugin-add-module-exports 1.0.4
babel-preset-minify 0.5.2
eslint 8.51.0
eslint-plugin-import 2.28.1
eslint-plugin-node 11.1.0
eslint-plugin-prettier 5.0.1
eslint-plugin-promise 6.1.1
http-server 14.1.1
jest 29.7.0
jest-environment-jsdom 29.7.0
typescript 5.2.2
.nvmrc
node 18
Update the nvm file and ensure the build is green
This one is a bit tricky as we're relying a lot on DOM to make the thing work ๐ฌ
Most notably: explain about the function failing Google s2 returns its default favicon (when the website has no favicon)
The favicon size is currently hardcoded into the URL.
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.