1.1.10 • Published 4 years ago

lazy-piping v1.1.10

Weekly downloads
-
License
The Unlicense
Repository
-
Last release
4 years ago

Lazy Piping

Build Status Coverage Status Known Vulnerabilities

A tiny package to allow lazy operations on all iterators. The whole point of this package is to allow saving of operations and the only calculating when needed (by calling the .get() function).

Just type into the terminal:

npm install --save lazy-piping

Then, in your code itself:

const { from, map, filter } = require('lazy-piping');

or:

import { from, map, filter } from 'lazy-piping';

or (as a script in your HTML):

<script src="https://unpkg.com/lazy-piping@latest/packages/lazy-piping.umd/src/index.js"></script>
const { from, map, filter } = LazyPiping;

And you're good to go!

from([1, 2, 3, 4, 5, 6, 7, 8])
	.pipe(
		map(x => x * 2),
		filter(x => x % 3)
	)
	.get();

Happy iterating! ;)

1.1.6

4 years ago

1.1.10

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago