getamna / favicongrabber.com

Grabbing favicons from any domain the serverless way with AWS Lambda and the Serverless Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Favicon Grabber Serverless license

This is a fork of the original favicongrabber service to make it serverless compatible. Deployment is super easy if you have an AWS account and AWS CLI configured. Full docs can be found on the original website.

npm install serverless -g
serverless deploy

Favicon Grabber is an online service to grab favicons from any domain.


Try Grabbing

API

Favicon Grabber API is simple and has the one endpoint. For instance, to grab favicons from digitalocean.com open https://favicongrabber.com/api/grab/digitalocean.com in your favorite browser.

Example Using

Grab icons with /apple/ mask in src property:

fetch('https://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.

About

Grabbing favicons from any domain the serverless way with AWS Lambda and the Serverless Framework

License:MIT License


Languages

Language:JavaScript 100.0%