@typedninja/pullable
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@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

Package Sidebar

Install

npm i @typedninja/pullable

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

126 kB

Total Files

32

Last publish

Collaborators

  • typedninja