Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@types/responselike
Advanced tools
Readme
npm install --save @types/responselike
This package contains type definitions for responselike (https://github.com/lukechilds/responselike#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/responselike.
/// <reference types="node" />
import { IncomingMessage } from "http";
import { Stream } from "stream";
export = ResponseLike;
/**
* Returns a streamable response object similar to a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage).
*/
declare class ResponseLike extends Stream.Readable {
statusCode: number;
headers: { [header: string]: string | string[] | undefined };
body: Buffer;
url: string;
/**
* @param statusCode HTTP response status code.
* @param headers HTTP headers object. Keys will be automatically lowercased.
* @param body A Buffer containing the response body. The Buffer contents will be streamable but is also exposed directly as `response.body`.
* @param url Request URL string.
*/
constructor(
statusCode: number,
headers: { [header: string]: string | string[] | undefined },
body: Buffer,
url: string,
);
}
These definitions were written by BendingBender.
FAQs
TypeScript definitions for responselike
The npm package @types/responselike receives a total of 6,308,023 weekly downloads. As such, @types/responselike popularity was classified as popular.
We found that @types/responselike 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.