https://github.com/oliverjash/iterable-transformers
Type-safe transformer functions for Iterable and AsyncIterable (map, flatten, reduce, etc.).
https://github.com/oliverjash/iterable-transformers
asynciterable asynciterator iterable iterator
Last synced: about 1 year ago
JSON representation
Type-safe transformer functions for Iterable and AsyncIterable (map, flatten, reduce, etc.).
- Host: GitHub
- URL: https://github.com/oliverjash/iterable-transformers
- Owner: OliverJAsh
- Created: 2017-04-27T11:04:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-13T13:10:23.000Z (almost 9 years ago)
- Last Synced: 2025-01-16T22:12:41.103Z (about 1 year ago)
- Topics: asynciterable, asynciterator, iterable, iterator
- Language: TypeScript
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iterable-transformers
Type-safe transformer functions for `Iterable` and `AsyncIterable` (`map`, `flatten`, `reduce`, etc.).
This is just a start. I'm looking for contributors :-)
[IxJS] is supposed to solve this problem, but I wanted something I could start using today.
## Installation
```
yarn add iterable-transformers
```
## Transformers
|transformers|`Iterable`|`AsyncIterable`|
|-|-|-|
|`map`|✅|✅|
|`flatten`|✅|✅|
|`reduce`|✅|✅|
|`toArray`|✅|✅|
|`filter`|TODO|TODO|
|`take`|TODO|TODO|
|`takeWhile`|✅|✅|
|`takeUntil`|TODO|TODO|
|`drop`|TODO|TODO|
|`dropWhile`|TODO|TODO|
|`dropUntil`|TODO|TODO|
## Development
``` bash
yarn
yarn run lint
yarn run compile
node ./target/examples/Iterable.js
node ./target/examples/AsyncIterable.js
```
## To do
- [ ] Write tests
- [ ] [Fantasy Land] compatibility
[IxJS]: https://github.com/ReactiveX/IxJS
[Fantasy Land]: https://github.com/fantasyland/fantasy-land