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
- Host: GitHub
- URL: https://github.com/lmammino/javascript-iteration-protocols
- Owner: lmammino
- License: mit
- Created: 2021-05-03T10:42:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-04T13:04:25.000Z (over 4 years ago)
- Last Synced: 2025-05-09T00:54:01.805Z (7 months ago)
- Topics: async, async-await, async-iterator, async-iterators, examples, iterator, iterators, javascript, nodejs
- Language: JavaScript
- Homepage: https://www.nodejsdesignpatterns.com/
- Size: 83 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 🙏.
