Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@types/stream-buffers
Advanced tools
TypeScript definitions for stream-buffers
npm install --save @types/stream-buffers
This package contains type definitions for stream-buffers (https://github.com/samcday/node-stream-buffer#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-buffers.
/// <reference types="node" />
import * as stream from "stream";
export interface WritableStreamBufferOptions extends stream.WritableOptions {
initialSize?: number | undefined;
incrementAmount?: number | undefined;
}
export class WritableStreamBuffer extends stream.Writable {
constructor(options?: WritableStreamBufferOptions);
size(): number;
maxSize(): number;
getContents(length?: number): Buffer | false;
getContentsAsString(encoding?: string, length?: number): string | false;
}
export interface ReadableStreamBufferOptions extends stream.ReadableOptions {
frequency?: number | undefined;
chunkSize?: number | undefined;
initialSize?: number | undefined;
incrementAmount?: number | undefined;
}
export class ReadableStreamBuffer extends stream.Readable {
constructor(options?: ReadableStreamBufferOptions);
put(data: string | Buffer, encoding?: string): void;
stop(): void;
size(): number;
maxSize(): number;
}
export const DEFAULT_INITIAL_SIZE: number;
export const DEFAULT_INCREMENT_AMOUNT: number;
export const DEFAULT_FREQUENCY: number;
export const DEFAULT_CHUNK_SIZE: number;
These definitions were written by Jason Dent.
FAQs
TypeScript definitions for stream-buffers
We found that @types/stream-buffers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.