mdawar.dev

A blog about programming, Web development, Open Source, Linux and DevOps.

How to Git Add an Empty Directory?

Add and commit and empty directory in your Git repository.

Install Multiple Node.js Versions Using NVM

Install and manage multiple Node.js versions using NVM (Node Version Manager).

Uninstall All NPM Global Packages

Remove all of the installed npm global packages from the command line.

Mock Express.js Client IP Address Using Jest

Mock the client's IP address when unit testing an Express application using Jest.

How to Mock a Python Default Function Argument?

Mock Python default function arguments for unit testing.