Node.js: Reading and Parsing Excel (XLSX) Files

November 10, 2021 A Goodman

This article shows you how to read and extract content from an Excel (.xlsx) file by using Node.js. Without any further ado, let’s get our hands dirty and start coding. Getting Things Ready We are going…

Node.js: How to Ping a Remote Server/ Website

November 9, 2021 A Goodman

This article shows you a couple of different ways to ping a remote server or a website from within your Node.js application (to get some network information like latency, IP address, …). In the first approach,…

Express + TypeScript: Extending Request and Response objects

October 21, 2021 The Plumber

This article shows you how to add new properties to an Express request object (we often deal with this task when working with middleware) or an Express response (not too common but may be necessary in…

Node + Mongoose + TypeScript: Defining Schemas and Models

October 19, 2021 Pennywise

This article walks you through a concise and straight-to-the-point example of declaring schemas and defining models with Mongoose and TypeScript. Without any further ado (e.g, talking about the history of Node.js or explaining what MongoDB is…

Best open-source ORM and ODM libraries for Node.js (2022)

January 2, 2022 Guest Contributor

ORM stands for Object-Relational Mapping which maps between Object Model and a Relational Database like MySQL, PostgreSQL, MS SQL, SQLite, etc. ODM is the abbreviation for Object Data Model that maps between an Object Model and…

7 Best Open-Source HTTP Request Libraries for Node.js (2022)

January 2, 2022 Guest Contributor

This article walks you through a list of the best open-source HTTP request libraries for Node.js in the year 2022. Without any further ado (like talking about the history of Node or explaining what HTTP is),…

Node.js: Executing a Piece of Code after a Delay

August 26, 2021 A Goodman

In Node.js, we can use the setTimeout function to run a piece of code after a delay. You can call setTimeout directly or use it with async/await. Example 1 – setTimeout This code runs a function…

Mongoose: Counting Documents that Satisfy Conditions

August 26, 2021 A Goodman

Mongoose is a great open-source that is widely used when building backend with Node.js and MongoDB. It supports several built-in methods that can help us count documents that satisfy given conditions in a database collection: Model.count({…

Node + Express: How to Return XML Response

July 17, 2021 A Goodman

This article walks you through a few examples of responding in XML when using Express and Node.js. Besides express, we don’t need any other npm libraries. Example 1: Basic This example creates a list of fiction…

How to Delete a File or Directory in Node.js

July 17, 2021 A Goodman

This article shows you a couple of different ways to remove a file or a directory using Node.js. We’ll use modern Javascript (ES6 and newer) and the latest features provided by Node.js core. No third-party libraries…

Node.js: Ways to Create a Directory If It Doesn’t Exist

July 8, 2021 Guest Contributor

This article walks you through a couple of different ways to create a directory if it doesn’t exist in Node.js. Using the FS module FS which stands for “file system”, is a standard module of Node.js…

How to install Redis on macOS, Windows, and Ubuntu

June 12, 2021 A Goodman

This article shows you how to install and get Redis ready-to-use on macOS, Windows, and Ubuntu. macOS The easy and reliable way to install Redis on a Mac is using Homebrew (a free, popular, and open-source…

1 2 3 4 5