1.0.3 • Published 5 years ago

favicon-trap v1.0.3

Weekly downloads
46
License
ISC
Repository
github
Last release
5 years ago

FAVICON-TRAP

A util allows you get favicons from a url

using this util you can get all favicons from given url.

Installation

npm install favicon-trap

Usage

there is only one function, it's verry easilly!

you can find more information from .d.ts file

import { favicon } from 'favicon-trap'

favicon('/path/to/url', option).then(icons=>console.log(icons))

Option

  • types: which types of icons you want, "icon"、"apple-touch-icon", default: 'icon'

  • timeout: http request timeout (unit:ms), default: 5000

  • headers: headers of http request

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago