1.1.8 • Published 3 years ago

fluentpipe v1.1.8

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

fluent-pipe

Execute fluent-style code without modifying prototype

const fp = require("fluentpipe")
const { FluentPipe, FluentPipeAsync, orderBy } = fp;

  // define a sample array and a transform function
  const ra = [1, 2, 5, 4, 3];
  function transform(values, multiplier) {
   return values.map(value => value * multiplier);   
   }

  // starting with ra, transform several times and then return the result
  const z = FluentPipe
    .from(ra)
    .pipe(v => ({ name: 'user' + v, value: transform(v, 45)}))
    .pipe(x => x.map(item => item.toString()))
    .pipe(t => t + ' Total')
    .result;
1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago