Skip to content

lmammino/node-async-iterators-talk-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-async-iterators-talk-examples

Examples from a talk about Node.js Async Iterators

This talk has been delivered in the following events:

Install

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

Install dependencies with:

npm install

Last.fm API key

Some examples requires you to have a Last.fm 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"

Examples

All examples are available in the src folder.

You can run them with node. For instance:

node src/07_iterable.js

Complete last.fm history package

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

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.

License

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 🙏.