1.1.0 • Published 3 years ago

@typedninja/pullable v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@typedninja/pullable

Async generator transformation library

Install

$ yarn add @typedninja/pullable

$ npm install --save @typedninja/pullable

Usage

Also see the API documentation.

import { from, map } from "@typedninja/pullable";

const multiplied = from([ 1, 2, 3, 4 ]).pipe(
  map(num => num * 2),
);

for await (const num of multiplied) {
  console.log(num);
}

License

MIT