Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@types/serve-favicon
Advanced tools
TypeScript definitions for serve-favicon
npm install --save @types/serve-favicon
This package contains type definitions for serve-favicon (https://github.com/expressjs/serve-favicon).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serve-favicon.
// Type definitions for serve-favicon 2.5
// Project: https://github.com/expressjs/serve-favicon
// Definitions by: Uros Smolnik <https://github.com/urossmolnik>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// 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;
These definitions were written by Uros Smolnik, and Piotr Błażejewicz.
FAQs
TypeScript definitions for serve-favicon
The npm package @types/serve-favicon receives a total of 264,594 weekly downloads. As such, @types/serve-favicon popularity was classified as popular.
We found that @types/serve-favicon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.