# fraction

> Fractional Buffer stream

Latest version **0.2.0** (published 2012-11-09) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2012-11-09 |
| First published | 2012-10-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.6.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Weltschmerz |
| Maintainers | Weltschmerz |
| Keywords | buffer, stream |

## Links

- npm: https://www.npmjs.com/package/fraction
- Repository: https://github.com/Weltschmerz/Fraction
- npm.io page: https://npm.io/package/fraction

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2012-11-09
- 0.1.0 — 2012-10-12
- 0.0.1 — 2012-10-11

## README

# Fraction

`npm install fraction`

Tiny module for piping a Buffer to a destination stream in segments. Wraps calls to `write` in process.nextTick(). Potential use case is for piping relatively large buffers to an HTTP response.

## Usage

```js
var fs = require('fs');
var file = fs.readFileSync('big-old-file.png');
var ws = fs.createWriteStream('big-old-file-out.png');

var Fraction = require('fraction');
var options = {
  //bufferSize:1024 * 64,
  //start:100,
  //end:200
};

Fraction.createStream(file, options).pipe(ws);
```

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