mirror of
https://github.com/zhigang1992/favicongrabber.com.git
synced 2026-01-12 17:22:32 +08:00
40058f6d7b6a726ee40461fd39b31970a4778fbd
Favicon Grabber 
Favicon Grabber is an online service to grab favicons from any domain.
API
Favicon Grabber API is simple and has the one endpoint. For instance, to grab favicons from digitalocean.com open http://favicongrabber.com/api/grab/digitalocean.com in your favorite browser.
Example Using
Grab icons with /apple/ mask in src property:
fetch('http://favicongrabber.com/api/grab/udemy.com')
.then(response => response.json())
.then(({ icons }) => icons.filter(({ src }) => /apple/.test(src)))
.then(icons => icons.forEach(icon => console.log(icon)));
For the full description, please see Service API reference.
License
The code is available under the MIT License.
Languages
JavaScript
66.4%
SCSS
21.7%
Pug
10%
Mustache
1.9%