Skip to content

Instantly share code, notes, and snippets.

@alexreardon
alexreardon / get-file-stream.js
Last active December 2, 2023 12:56
rxjs file stream
// @flow
import fs from 'fs';
import { Observable } from 'rxjs';
type Options = {
highWaterMark: number,
encoding: string,
}
const defaultOptions: Options = {