Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@types/stream-buffers
Advanced tools
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.
// Type definitions for stream-buffers 3.0
// Project: https://github.com/samcday/node-stream-buffer#readme
// Definitions by: Jason Dent <https://github.com/Jason3S>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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
The npm package @types/stream-buffers receives a total of 388,754 weekly downloads. As such, @types/stream-buffers popularity was classified as popular.
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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.