Articles tagged in: Node.js



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

Node.js — Get a File’s Created Date

The file system module in Node.js provides all file-related functions. Access file details with the help of a so called “stats” instance. {{outline}} Created Date of a File Use the fs module in Node.js to retrieve a stats instance of a given file including meta data like the …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.