@types/metascraper-logo-favicon
TypeScript icon, indicating that this package has built-in type declarations

5.14.6 • Public • Published

Installation

npm install --save @types/metascraper-logo-favicon

Summary

This package contains type definitions for metascraper-logo-favicon (https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-logo-favicon).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/metascraper-logo-favicon.

index.d.ts

/// <reference types="node" />

import * as http from "http";
import metascraper = require("metascraper");

declare namespace getData {
    type PickDefaultFunction = (sizes: FaviconSize[]) => FaviconSize;
    type PickFunction = (sizes: FaviconSize[], pickDefault: PickDefaultFunction) => FaviconSize;

    interface FaviconSize {
        rel?: string | undefined;
        href: string;
        sizes?: string | undefined;
        url: string;
        size: number;
    }

    interface Options {
        /** Any option provided here will passed to `got#options`. */
        gotOpts?: http.ClientRequestArgs | undefined;
        /** Truncate the value extracted to a maximum size (default: `300`). */
        pickFn?: PickFunction | undefined;
    }
}

declare function getData(options?: getData.Options): metascraper.Rules;

export = getData;

Additional Details

Credits

These definitions were written by Florian Imdahl.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.14.00ts3.5
5.14.1490ts3.6
5.14.1490ts3.7
5.14.1490ts3.8
5.14.1490ts3.9
5.14.1490ts4.0
5.14.1490ts4.1
5.14.1490ts4.2
5.14.1490ts4.3
5.14.1490ts4.4
5.14.40ts4.5
5.14.6140ts5.6
5.14.6140latest
5.14.6140ts4.6
5.14.6140ts4.7
5.14.6140ts4.8
5.14.6140ts4.9
5.14.6140ts5.0
5.14.6140ts5.1
5.14.6140ts5.2
5.14.6140ts5.3
5.14.6140ts5.4
5.14.6140ts5.5
5.14.6140ts5.7

Version History

VersionDownloads (Last 7 Days)Published
5.14.6140
5.14.50
5.14.40
5.14.33
5.14.20
5.14.1490
5.14.00

Package Sidebar

Install

npm i @types/metascraper-logo-favicon

Weekly Downloads

512

Version

5.14.6

License

MIT

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • types