text-pipe / 0.8.0 last updated 2 months ago created on Nov 3rd 2014
Install
npm install --save text-pipe
Clone
git clone git@github.com:wilmoore/text-pipe.git
dependencies
show all 15
| main |
|
stream-reduce | 1.0.3 | Public Domain |
|
|
through2-map | 1.4.0 | MIT | |
|
|
through2-filter | 1.4.0 | MIT |
maintainers
versions
8 total
| 0.8.0 | 2 months ago | wilmoore |
| 0.7.0 | 2 months ago | wilmoore |
| 0.6.0 | 2 months ago | wilmoore |
| 0.5.0 | 2 months ago | wilmoore |
| 0.4.0 | 2 months ago | wilmoore |
| 0.3.0 | 2 months ago | wilmoore |
| 0.2.0 | 2 months ago | wilmoore |
| 0.1.0 | 2 months ago | wilmoore |
readme
text-pipe
Transform stream enumeratee generators for stream-driven data extract and transformation (i.e. ETL).
text-pipe is a node module that includes functions for creating enumeratees (i.e. map, reduce) that serve as transform streams. This allows you to iteratively compose complex data processing workflows via simple map, reduce, and filter-like functions. Check out the examples folder for working code samples. In order to run the code samples, you must do the following:
NOTE: read the comments and the code in the examples to get a feel for how it works.
API
.map
aliases: .transform
For each value, return result of calling transformer function to given value.
.select
aliases: .filter, .keep
For each value, return only values that pass a truth test.
.reduce
aliases: .fold, .inject
Array.prototype.reduce as a through stream.
Depends on
- stream-reduce
- through2-filter: You could use this directly if you want to write
{wantStrings: true}boilerplate. - through2-map: You could use this directly if you want to write
{wantStrings: true}boilerplate. - through2: You could use this directly if you want to write
writeandendboilerplate.