# save-stream **Repository Path**: mirrors_floatdrop/save-stream ## Basic Information - **Project Name**: save-stream - **Description**: Save stream contents and pipe it again later - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # save-stream [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url] Save stream contents and pipe it again later. ## Usage ```js var save = require('save-stream'); var saved = save(); saved.write(1); saved.write(2); saved.write(3); saved.write(4); saved.end(); saved.load().pipe(console.log); setTimeout(function () { saved.load().pipe(console.log); }, 1000); /* Output: 1 2 3 4 1 2 3 4 */ ``` ## API ### save() Returns pass through stream with additional method #### save.load() Returns pass through stream, that will emit all data from the begining. __Note__: it may change to `1.0.0` version, because initialy I wanted just overload `pipe` method. ## License MIT (c) 2014 Vsevolod Strukchinsky [npm-url]: https://npmjs.org/package/save-stream [npm-image]: http://img.shields.io/npm/v/save-stream.svg?style=flat [travis-url]: http://travis-ci.org/floatdrop/save-stream [travis-image]: http://img.shields.io/travis/floatdrop/save-stream.svg?branch=master&style=flat [depstat-url]: https://david-dm.org/floatdrop/save-stream [depstat-image]: http://img.shields.io/david/floatdrop/save-stream.svg?style=flat