Marcus

Marcus is a fullstack JS developer. He’s passionate about the hapi framework for Node.js and loves to build web apps and APIs. Creator of Futureflix and the “learn hapi” learning path.


Node.js — Run Async Functions in Batches

When working with arrays of data, you may need to run an asynchronous operation on each item. The Promise.all() method provides a convenient interface to run a list of promises in parallel, but it has some limitations. Using Promise.all() may overload the available resources, especially when reaching out …

Continue Reading

learn hapi — Bringing Back JWT Claims in the JWT Payload

The recent tutorials in this series on JSON web tokens introduced a handful of code changes. For example, you switched the packages creating JWTs from jsonwebtoken to node-jose to support encrypted and nested tokens. A downside of this switch: the JWT-related claims were added jsonwebtoken automatically when creating a new …

Continue Reading

Clone/Copy an Array in JavaScript and Node.js

You’re naturally in the needs of handy utilities when working with JavaScript handling arrays. Modern JavaScript frameworks —especially the frontend frameworks— abstract most of the DOM interaction. You’re focusing on the actual logic and implement the data handling. When implementing the logic, a handy utility related to JavaScript …

Continue Reading

Axios — Download Progress in Node.js

Axios provides a clean promise-based API to interact with HTTP endpoints. It supports a variety of formats and use-cases. A previous tutorial showed you how to download files with Axios in Node.js. This tutorial walks you through the process of adding a progress bar when downloading files with Axios …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.