mirror of
https://github.com/zhigang1992/favicongrabber.com.git
synced 2026-04-29 01:54:54 +08:00
aa554e98c357acbcb8b1186e3cb8cebbda0f6906
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%