# eval-stream

> Evaluate streams of JavaScript code in a given context

Latest version **0.1.0** (published 2014-11-04) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-11-04 |
| First published | 2014-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | jpommerening |
| Keywords | eval, stream |

## Links

- npm: https://www.npmjs.com/package/eval-stream
- Repository: https://github.com/jpommerening/node-eval-stream
- Issues: https://github.com/jpommerening/node-eval-stream/issues
- npm.io page: https://npm.io/package/eval-stream

## Dependencies (2)

- [inherits](https://npm.io/package/inherits.md) ~2.0.1
- [readable-stream](https://npm.io/package/readable-stream.md) ~1.1.13

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-11-04
- 0.1.0-rc1 — 2014-05-23

## README

# eval-stream

> Evaluate streams of JavaScript code in a given context.

## Examples

Here, we read the body of an adding function from a simple
through-stream:

```js
var PassThrough = require('stream').PassThrough ||
                  require('readable-stream/passthrough');
var assert = require('assert');

var evalStream = require('eval-stream');

var ts = new PassThrough();

ts.pipe(evalStream({
    a: 1,
    b: 2
  }, function (err, result) {
    assert(!err);
    assert.equal(result, 3);
  }));

ts.write('return a + b;');
ts.end();
```

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