serve-favicon/LICENSE000777 177776 177776 0000002165 14071103035012773 0ustar00000000 000000 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE serve-favicon/README.md000777 177776 177776 0000003411 14071103035013240 0ustar00000000 000000 # Installation > `npm install --save @types/serve-favicon` # Summary This package contains type definitions for serve-favicon (https://github.com/expressjs/serve-favicon). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serve-favicon. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serve-favicon/index.d.ts) ````ts // Type definitions for serve-favicon 2.5 // Project: https://github.com/expressjs/serve-favicon // Definitions by: Uros Smolnik // Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== import serveFavicon = require('serve-favicon'); app.use(serveFavicon(__dirname + '/public/favicon.ico')); =============================================== */ import express = require('express'); /** * Node.js middleware for serving a favicon. */ declare function serveFavicon( path: string | Buffer, options?: serveFavicon.Options ): express.RequestHandler; declare namespace serveFavicon { interface Options { /** * The cache-control max-age directive in ms, defaulting to 1 day. * This can also be a string accepted by the `ms` module. */ maxAge?: number | string | undefined; } } export = serveFavicon; ```` ### Additional Details * Last updated: Tue, 06 Jul 2021 16:34:37 GMT * Dependencies: [@types/express](https://npmjs.com/package/@types/express) * Global values: none # Credits These definitions were written by [Uros Smolnik](https://github.com/urossmolnik), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). serve-favicon/index.d.ts000777 177776 177776 0000002015 14071103035013661 0ustar00000000 000000 // Type definitions for serve-favicon 2.5 // Project: https://github.com/expressjs/serve-favicon // Definitions by: Uros Smolnik // Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== import serveFavicon = require('serve-favicon'); app.use(serveFavicon(__dirname + '/public/favicon.ico')); =============================================== */ import express = require('express'); /** * Node.js middleware for serving a favicon. */ declare function serveFavicon( path: string | Buffer, options?: serveFavicon.Options ): express.RequestHandler; declare namespace serveFavicon { interface Options { /** * The cache-control max-age directive in ms, defaulting to 1 day. * This can also be a string accepted by the `ms` module. */ maxAge?: number | string | undefined; } } export = serveFavicon; serve-favicon/package.json000777 177776 177776 0000001776 14071103035014263 0ustar00000000 000000 { "name": "@types/serve-favicon", "version": "2.5.3", "description": "TypeScript definitions for serve-favicon", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serve-favicon", "license": "MIT", "contributors": [ { "name": "Uros Smolnik", "url": "https://github.com/urossmolnik", "githubUsername": "urossmolnik" }, { "name": "Piotr Błażejewicz", "url": "https://github.com/peterblazejewicz", "githubUsername": "peterblazejewicz" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/serve-favicon" }, "scripts": {}, "dependencies": { "@types/express": "*" }, "typesPublisherContentHash": "8e9fd4c2ea85528ff25c1e30a43e4e1ddbe8094999921e152a2df32bf2cefce3", "typeScriptVersion": "3.6" }