ops

optimus-prime-stream

NodeJS stream transformer

Showing:

Popularity

Downloads/wk

1

Maintenance

No Maintenance Data Available

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

OptimusPrime

NodeJS stream transformer

Install

Using Yarn:

yarn add optimus-prime-stream

Or using npm:

npm install --save optimus-prime-stream

API

The module exposes a single function with signature (Stream input, Function transformer) => Stream output:

  • input: The stream to read from.
  • transformer: The function that transforms each chunk in the input stream.

Returns: A new stream with the transformed data.

Basic usage

Using transform to filter out the data you need from a stream:

// 1. require the package
const transform = require("optimus-prime-stream");

// 2. fetch a stream
const items = loadStreamOfThings();

// 3. get the transformed stream
const names = transform(items, item => JSON.parse(item).name);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial