# block-stream

> a stream of blocks

Latest version **0.0.9** (published 2016-05-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install block-stream
pnpm add block-stream
yarn add block-stream
bun add block-stream
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2016-05-02 |
| First published | 2011-10-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.4 \|\| >=0.5.8 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 54 |
| Author | Isaac Z. Schlueter |
| Maintainers | isaacs |

## Links

- npm: https://www.npmjs.com/package/block-stream
- Repository: https://github.com/isaacs/block-stream
- Homepage: https://github.com/isaacs/block-stream#readme
- Issues: https://github.com/isaacs/block-stream/issues
- npm.io page: https://npm.io/package/block-stream

## Dependencies (1)

- [inherits](https://npm.io/package/inherits.md) ~2.0.0

## Recent versions

- 0.0.9 (latest) — 2016-05-02
- 0.0.8 — 2015-05-20
- 0.0.7 — 2013-07-24
- 0.0.6 — 2012-06-20
- 0.0.5 — 2012-02-08
- 0.0.4 — 2011-11-08
- 0.0.3 — 2011-10-17

## README

# block-stream

A stream of blocks.

Write data into it, and it'll output data in buffer blocks the size you
specify, padding with zeroes if necessary.

```javascript
var block = new BlockStream(512)
fs.createReadStream("some-file").pipe(block)
block.pipe(fs.createWriteStream("block-file"))
```

When `.end()` or `.flush()` is called, it'll pad the block with zeroes.

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