2.0.1 • Published 9 months ago

faviconer v2.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

faviconer

faviconer is simple Node.js module to extract an icon URL given the URL of a web page.

Installation

npm install -g faviconer

Usage

const faviconer = require('faviconer')

const main = async function() {

  const iconURL = await faviconer.get('https://news.bbc.co.uk')
  console.log(iconURL)
  // https://m.files.bbci.co.uk/modules/bbc-morph-news-waf-page-meta/5.3.0/apple-touch-icon-57x57-precomposed.png
}
main()

Return values

Faviconer will return a string containing the absolute URL of the icon it found or null if the URL is invalid, or doesn't contain a favicon URL.

2.0.1

9 months ago

2.0.0

9 months ago

1.1.0

10 months ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago