An open API service indexing awesome lists of open source software.

https://github.com/lmammino/javascript-iteration-protocols

Some examples regarding JavaScript powerful iteration protocols enabling `for..of` and `for await...of` syntax
https://github.com/lmammino/javascript-iteration-protocols

async async-await async-iterator async-iterators examples iterator iterators javascript nodejs

Last synced: 7 months ago
JSON representation

Some examples regarding JavaScript powerful iteration protocols enabling `for..of` and `for await...of` syntax

Awesome Lists containing this project

README

          

# javascript-iteration-protocols

Some examples regarding JavaScript powerful iteration protocols enabling `for..of` and `for await...of` syntax

All these examples are presented and discussed in depth in the article [JavaScript async iterators](https://www.nodejsdesignpatterns.com/blog/javascript-async-iterators).

## Install

You will need Node.js 16+.

Then you'll need to install the needed dependencies with:

```bash
npm install
```

## Contributing

Everyone is very welcome to contribute to this project.
You can contribute just by submitting bugs or suggesting improvements by
[opening an issue on GitHub](https://github.com/lmammino/javascript-iteration-protocols/issues).

## License

Licensed under [MIT License](LICENSE). © Luciano Mammino.

## Shameless plug 😇

If you like this piece of work, consider supporting me by getting a copy of [Node.js Design Patterns, Third Edition](https://www.nodejsdesignpatterns.com/), which also goes into great depth about Streams and related design patterns.

If you already have this book, **please consider writing a review** on Amazon, Packt, GoodReads or in any other review channel that you generally use. That would support us greatly 🙏.