stream-cache

A simple way to cache and replay readable streams.

2 个版本
安装
npm install stream-cache
yarn add stream-cache
pnpm add stream-cache
bun add stream-cache
README

node-stream-cache

A simple way to cache and replay readable streams.

Usage

var StreamCache = require('stream-cache');
var fs          = require('fs');

var cache = new StreamCache();
fs.createReadStream(__filename).pipe(cache);

// Cache can now be piped anywhere, even before the readable stream finishes.
cache.pipe(process.stdout);
版本列表
0.0.2 2012-04-27
0.0.1 2012-04-27