
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@types/httpsnippet
Advanced tools
TypeScript definitions for httpsnippet
npm install --save @types/httpsnippet
This package contains type definitions for httpsnippet (https://github.com/Kong/httpsnippet).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/httpsnippet.
// Type definitions for httpsnippet 1.23
// Project: https://github.com/Kong/httpsnippet
// Definitions by: Marcell Toth <https://github.com/marcelltoth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Har, Request } from 'har-format';
/*~ This declaration specifies that the class constructor function
*~ is the exported object from the file
*/
export = HTTPSnippet;
/*~ Write your module's methods and properties in this class */
declare class HTTPSnippet {
constructor(data: HTTPSnippet.Data);
convert(target: string, options?: HTTPSnippet.Options): string | false;
convert(target: string, client?: string, options?: HTTPSnippet.Options): string | false;
static addTarget(target: HTTPSnippet.Target): void;
static addTargetClient(target: string, client: HTTPSnippet.TargetClient): void;
static availableTargets: string[];
static extName(target: string): string;
}
declare namespace HTTPSnippet {
type Data = Har | Request;
type Options = object;
interface TargetClientInfo {
key: string;
title: string;
link?: string | undefined;
description?: string | undefined;
}
interface TargetClient {
(source: Request, options: Options): string;
info: TargetClientInfo;
}
interface TargetInfo<C extends string> {
key: string;
title: string;
extname: string;
default: C;
}
type Target<C extends string = string> = {
info: TargetInfo<C>;
} & Record<C, TargetClient>;
}
These definitions were written by Marcell Toth.
FAQs
Stub TypeScript definitions entry for httpsnippet, which provides its own types definitions
The npm package @types/httpsnippet receives a total of 7,773 weekly downloads. As such, @types/httpsnippet popularity was classified as popular.
We found that @types/httpsnippet demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.