generator-examples
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 examplenode/co_demo/node/Node.js-based examples.- Install packages that the code depends on:
cd node/ ; npm install - Use babel-node to run them.
- Install packages that the code depends on:
nonblocking-counter/Web-based example: a non-blocking counter shown on a web page. Uses Babel to run in current browsers.- Run online: rauschma.github.io/generator-examples/nonblocking-counter/
- Run offline: Download this repo to your hard drive. You can run
generator-examples/index.htmlin your browser, directly from the file system.