Synchronous IO for Node.js using ES6 generators