Validating request in Express using express-validator

In this article you will learn how to validate your payload coming from a POST request for an Express API using express-validator. Learn how to validate any data coming in as input to your Express endpoints. Express Validator is an npm package that helps developers to validate the incoming requests to an API build in Express in … Read more

Keep your Node.js app running in the background using PM2

Get started with the basics of PM2 and learn how to run your Node.js apps in the background using Node.js process manager PM2. PM2 is a daemon process manager that will help you manage and keep your Node.js application online 24/7. It’s a production grade process manager that let’s your node.js applications run in the background as microservices. PM2 … Read more

Remove unused npm modules from package.json

Depcheck is a tool for analyzing the dependencies in a project to see: how each dependency is used, which dependencies are useless, and which dependencies are unused from package.json. To identify the unused package, just run npx depcheck in the project root directory Next step is to uninstall the npm packages using npm uninstall command.  If you’d like to read more then iamdev.net is … Read more

How to uninstall npm modules in node.js?

In this small post, find out how to uninstall npm packages from a node.js project or globally. Any npm package can be installed easily using the npm installcommand. But most of the times we ignore the installed package and forget about them. How do we uninstall npm modules? Read on. Syntax The syntax to uninstall npm … Read more