generator-examples icon indicating copy to clipboard operation
generator-examples copied to clipboard

Example code from the blog post “ES6 generators in depth”

Generator examples

This repository contains the code examples from the blog post “ES6 generators in depth”.

Directories:

  • data/ The data used by the example node/co_demo/
  • node/ Node.js-based examples.
    • Install packages that the code depends on: cd node/ ; npm install
    • Use babel-node to run them.
  • nonblocking-counter/ Web-based example: a non-blocking counter shown on a web page. Uses Babel to run in current browsers.