Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avaer/favicon-get
Get the favicon url for a page url
https://github.com/avaer/favicon-get
Last synced: about 2 months ago
JSON representation
Get the favicon url for a page url
- Host: GitHub
- URL: https://github.com/avaer/favicon-get
- Owner: avaer
- License: mit
- Created: 2019-01-02T02:15:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-02T02:19:48.000Z (about 6 years ago)
- Last Synced: 2024-10-09T19:22:30.983Z (3 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> get the favicons url from any website
# Install
```bash
$ npm install get-website-favicon --save
```# Usage
## Example
```js
var getFavicons = require('get-website-favicon')
getFavicons('github.com').then(data=>{
/*
{
url: 'https://github.com',
icons: [{
src: 'https://github.com/favicon.ico',
sizes: '',
type: 'image/x-icon',
origin: 'site/favicon.ico'
}, {
src: 'https://github.com/fluidicon.png',
sizes: '',
type: '',
origin: ''
}, {
src: 'https://assets-cdn.github.com/images/modules/open_graph/github-logo.png',
sizes: '',
type: '',
origin: ''
}, {
src: 'https://assets-cdn.github.com/images/modules/open_graph/github-mark.png',
sizes: '',
type: '',
origin: ''
}, {
src: 'https://assets-cdn.github.com/images/modules/open_graph/github-octocat.png',
sizes: '',
type: '',
origin: ''
}, {
src: 'https://assets-cdn.github.com/pinned-octocat.svg',
sizes: '',
type: '',
origin: ''
}, {
src: 'https://assets-cdn.github.com/favicon.ico',
sizes: '',
type: 'image/x-icon',
origin: ''
}, {
src: 'https://assets-cdn.github.com/apple-touch-icon-114x114.png',
sizes: '114x114',
type: '',
origin: 'https://github.com/manifest.json'
}, {
src: 'https://assets-cdn.github.com/apple-touch-icon-120x120.png',
sizes: '120x120',
type: '',
origin: 'https://github.com/manifest.json'
}, {
src: 'https://assets-cdn.github.com/apple-touch-icon-144x144.png',
sizes: '144x114',
type: '',
origin: 'https://github.com/manifest.json'
}, {
src: 'https://assets-cdn.github.com/apple-touch-icon-152x152.png',
sizes: '152x152',
type: '',
origin: 'https://github.com/manifest.json'
}, {
src: 'https://assets-cdn.github.com/apple-touch-icon-180x180.png',
sizes: '180x180',
type: '',
origin: 'https://github.com/manifest.json'
}, {
src: 'https://assets-cdn.github.com/apple-touch-icon-57x57.png',
sizes: '57x57',
type: '',
origin: 'https://github.com/manifest.json'
}, {
src: 'https://assets-cdn.github.com/apple-touch-icon-60x60.png',
sizes: '60x60',
type: '',
origin: 'https://github.com/manifest.json'
}, {
src: 'https://assets-cdn.github.com/apple-touch-icon-72x72.png',
sizes: '72x72',
type: '',
origin: 'https://github.com/manifest.json'
}, {
src: 'https://assets-cdn.github.com/apple-touch-icon-76x76.png',
sizes: '76x76',
type: '',
origin: 'https://github.com/manifest.json'
}]
}
*/
})
```