# basic-pipeline

> A basic pipeline module for node and the web

Latest version **0.1.4** (published 2015-01-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install basic-pipeline
pnpm add basic-pipeline
yarn add basic-pipeline
bun add basic-pipeline
```

## 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.4 |
| Published | 2015-01-19 |
| First published | 2013-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Donnovan Lewis |
| Maintainers | blackdynamo |
| Keywords | simple, pipeline, workflow, sequence, pipe, async, series, execution, tasks |

## Links

- npm: https://www.npmjs.com/package/basic-pipeline
- Repository: https://github.com/blackdynamo/basic-pipeline
- Issues: https://github.com/blackdynamo/basic-pipeline/issues
- npm.io page: https://npm.io/package/basic-pipeline

## Dependencies (1)

- [bower](https://npm.io/package/bower.md) ^1.3.12

## 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.4 (latest) — 2015-01-19
- 0.1.3 — 2013-10-16
- 0.1.2 — 2013-10-16
- 0.1.1 — 2013-10-16
- 0.1.0 — 2013-10-15

## README

# basic-pipeline

A basic pipeline module for node and the web

## Installation

### NPM
    $ npm install basic-pipeline --save

### Bower
    $ bower install basic-pipeline --save
    
## Usage

Add steps to a pipeline with **use**. Then execute those steps in order with **execute**.

```js
var Pipeline = require("basic-pipeline");

var pipeline = new Pipeline();

pipeline.use(function (context, next) {
    context.foo = "bar";

    next();
});

pipeline.use(function (context, next) {
    context.bar = "baz";

    next();
});

pipeline.use(function (context, next) {
    context.theAnswerIs = "42";

    next();
});

pipeline.execute({}, function (err, context) {
    console.log(context);
});

//context => { foo: 'bar', bar: 'baz', theAnswerIs: '42' }
```

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