# data-pipeline

> data convert pattern library for redux

Latest version **1.2.1** (published 2016-12-28) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2016-12-28 |
| First published | 2016-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | iwate |
| Maintainers | iwate |
| Keywords | redux, ajax, pipeline |

## Links

- npm: https://www.npmjs.com/package/data-pipeline
- Repository: https://github.com/iwate/data-pipeline
- Homepage: https://github.com/iwate/data-pipeline#readme
- Issues: https://github.com/iwate/data-pipeline/issues
- npm.io page: https://npm.io/package/data-pipeline

## Dependencies (1)

- [redux](https://npm.io/package/redux.md) ^3.6.0

## 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

- 1.2.1 (latest) — 2016-12-28
- 1.2.0 — 2016-11-05
- 1.1.0 — 2016-10-21
- 1.0.0 — 2016-10-19
- 0.9.3 — 2016-10-17
- 0.9.2 — 2016-10-17
- 0.9.1 — 2016-10-16
- 0.9.0 — 2016-10-16

## README

# Data Pipeline
data convert pattern library for redux.
[iwate.github.com/data-pipeline](https://iwate.github.com/data-pipeline)

[Demo](https://iwate.github.com/data-pipeline/demo)

# How to use
## Install
  Install from npm

  npm install data-pipeline

## Setup
Setup Reducers, Store, and Activities.

```js
/**
 * reducer
 */
import { combineReducers } from 'redux'
import { ajaxRequests } from 'data-pipeline'

const reducers combineReducers({ ajaxRequests, /* more reducers! */ })

/**
 * store
 */
import { createStore, applyMiddleware } from 'redux'
import { cancelAjax, putReqToPipeline } from 'data-pipeline'

const createStoreWithMiddleware = applyMiddleware(
  cancelAjax,
  putReqToPipeline,
)(createStore)
const store = createStoreWithMiddleware(reducers)

/**
 * activities
 */
import { pipeline, initAjaxActivity } from 'data-pipeline'
import initProductsActivity from './ProductsActivity'

initAjaxActivity(pipeline, store)
// more activities...
// ex. initProductsActivity(pipeline, store)
```

## License
The MIT License (MIT)
Copyright (c) 2016 iwate

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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