Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



5 Commits

Repository files navigation


Examples from a talk about Node.js Async Iterators

This talk has been delivered in the following events:


NOTE: You will need at least Node.js 16 to run some of the examples in this repository.

Install dependencies with:

npm install API key

Some examples requires you to have a API key. You can request one here.

Once you have an API key you can export it as an environment variable:

export API_KEY="mysupersecretlastfmapikey"


All examples are available in the src folder.

You can run them with node. For instance:

node src/07_iterable.js

Complete history package

For a more "serious" library to fetch data from check out scrobbles.


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.


Licensed under MIT 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, 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 🙏.