from-node-stream
Version:
convert nodejs-stream into webstream
33 lines (32 loc) • 1.11 kB
TypeScript
import { Readable, Writable } from "stream";
import { fromReadable } from "./fromReadable";
import { fromWritable } from "./fromWritable";
export declare function fromStdioDropErr(
/** a process, which has stdin, stdout, stderr */
p: {
stdin?: Writable | null;
stdout?: Readable | null;
stderr?: Readable | null;
}): TransformStream<string | Uint8Array, string | Uint8Array>;
/** Make TransformStream from stdio*/
export declare function fromStdioMergeError(
/** a process, which has stdin, stdout, stderr */
p: {
stdin?: Writable | null;
stdout?: Readable | null;
stderr?: Readable | null;
}): TransformStream<string | Uint8Array, string | Uint8Array>;
/**
* Make TransformStream from stdio
*/
export declare function fromStdio(
/** a process, which has stdin, stdout, stderr */
p: {
stdin?: Writable | null;
stdout?: Readable | null;
stderr?: Readable | null;
}, { stderr, }?: {
/** specify stderr to forward, or set to null to drop. */
stderr?: Writable | null;
}): TransformStream<string | Uint8Array, string | Uint8Array>;
export { fromReadable, fromWritable };