Articles tagged in: Node.js

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(): Replace One …

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.