NodeJS Readline Module

The Readline Module is a built-in module in NodeJS used for reading the input stream and providing resultant output. This module implements the process input stream and output stream to give the functionality of reading input and providing resultant output. It enables the question answers type operation, such as when initiating NPM, it asks for …

NodeJS Readline Module Read More »

NodeJS VM Module

VM stands for Virtual Machine. A Virtual Machine is a virtual environment created in your pc which can run programs. It can be helpful to execute a peace of code in a different environment so that it doesn’t interrupt the main environment. What is VM Module? VM is a built-in module in NodeJS used to …

NodeJS VM Module Read More »

Controllers in NodeJS

A controller is a function that defines the response sent to a client when making a request to the server.  This tutorial teaches you the concept of controllers in NodeJS. We highly recommend you read the previous tutorial Separating Routers in NodeJS to better understand the Controllers. Controllers in NodeJS Below is the code that …

Controllers in NodeJS Read More »

Run a batch file in NodeJS

NodeJS is an open-source, cross-platform runtime environment used for multiple tasks, it can interact with files, implement all types of databases, perform various operations, etc. NodeJS can also run the bash files asynchronously without blocking the other block of code. This tutorial provides a complete guide to running Batch Files in NodeJS. Introduction to Batch …

Run a batch file in NodeJS Read More »

NodeJS MongoDB Remove

MongoDB database is used to store a large number of records, these records are called documents. These documents take some space in the memory, and to free up the space occupied by irrelevant documents they can be directly removed. Document removal also helps clean irrelevant, useless, or temporary data. Methods for Removing MongoDB Documents Documents …

NodeJS MongoDB Remove Read More »