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/Promises in Parallel

With the release of Node.js v8, async functions became an integral component. Async functions provide a simpler API around promises by removing (most) of the callback-y code. The combination of async/await and promises is powerful, but you have to be careful not going too sequential. This tutorial shows …

Continue Reading

NPM — How to Uninstall Packages

NPM has large ecosystem of JavaScript modules. During development, you may add dependencies to your project and may not need them anymore at a later point. Using the NPM CLI to install dependencies will add the module to your project dependencies by adding it to your package.json file. In …

Continue Reading

learn hapi — JWT Claims 101

You’re automatically using claims when using JWTs in your application. JWT Claims are an important piece in the JSON web token specification. Claims represent the data you’re storing inside the JWT. A JWT claim set is the JWT payload consisting of more than one key-value-pair. Imagine a JWT …

Continue Reading

Node.js — String Replace All Appearances

String replacements are a common task in app development. JavaScript has powerful string methods and you intentionally think of string.replace() when reading the headline. Good catch, but there’s a trick to replacing all appearances when using it. Read on to get the details! {{outline}} String.replace(): One Appearance …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.