# stream2file

> Writes a stream to a file

Latest version **2.0.0** (published 2022-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install stream2file
pnpm add stream2file
yarn add stream2file
bun add stream2file
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-04-06 |
| First published | 2017-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sundeep Narang |
| Maintainers | sundeepnarang |
| Keywords | stream, file |

## Links

- npm: https://www.npmjs.com/package/stream2file
- Repository: https://github.com/sundeepnarang/stream2file
- Homepage: https://github.com/sundeepnarang/stream2file#readme
- Issues: https://github.com/sundeepnarang/stream2file/issues
- npm.io page: https://npm.io/package/stream2file

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2022-04-06
- 1.0.1 — 2018-08-17
- 1.0.0 — 2017-06-20

## README

# stream2file

## usage


    const stream2file = require("stream2file");

    stream2file(fileStream, filePath, (err) => {
        if (err) {
            console.log("Error Saving Stream to File : ", err);
        }
    });


## async usage

    const {asynstream2file} = require("stream2file");
    
    try{
        await asyncStream2File(fileStream, filePath);
    } catch(e) {
        console.log("Error Saving Stream to File : ", err);
    }

---
_Source: https://npm.io/package/stream2file · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
