Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
most-request
Advanced tools
Simple Most.js wrapper around superagent
yarn add most-request
#or
npm install --save most-request
request(options: RequestOptions): Stream<Response>
Creates a stream of Response, and upon subscription, will execute the specified request as defined by the given options and emit the Response.
import { request } from 'most-request';
request({ url: 'http://example.com', method: 'GET' })
.observe((response: Response) => {
...
})
The types used in the API section
export interface Response {
text: string;
body: any;
files: any;
header: any;
type: string;
charset: string;
status: number;
statusType: number;
info: boolean;
ok: boolean;
redirect: boolean;
clientError: boolean;
serverError: boolean;
error: Error;
accepted: boolean;
noContent: boolean;
badRequest: boolean;
unauthorized: boolean;
notAcceptable: boolean;
notFound: boolean;
forbidden: boolean;
xhr: XMLHttpRequest;
get(header: string): string;
}
export declare type HTTPMethod =
'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
export interface RequestOptions {
url: string;
method: HTTPMethod;
query?: Object;
send?: Object;
headers?: Object;
accept?: string;
type?: string;
user?: string;
password?: string;
field?: Object;
progress?: boolean;
attach?: Array<Attachment>;
agent?: AgentOptions;
withCredentials?: boolean;
redirects?: number;
lazy?: boolean;
}
export interface Attachment {
name: string;
path: string;
filename?: string;
}
export interface AgentOptions {
key: string;
cert: string;
}
FAQs
Most.js wrapper for superagent library
The npm package most-request receives a total of 6 weekly downloads. As such, most-request popularity was classified as not popular.
We found that most-request 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.