Skip to content

Tag Archives: Node.js-Methods

Calling an API endpoint is the core functionality of modern internet technology. Usually, we call API from the browser. Sometimes we need to call API… Read More
The process.memoryUsage() method is an inbuilt method of the process module that provides information about the current processes or runtime of a Node.js program. The… Read More
The date-and-time.Date.isLeapYear() is a minimalist collection of functions for manipulating JS date and time module which is used to check if the given year is… Read More
The insertOne() and insertMany() are the two methods of the MongoDB module in node.js that are used to push the documents in the collections of… Read More
The process.send() method is an inbuilt application programming interface of the process module which is used by the child process to communicate with the parent… Read More
The hash.update( ) method is an inbuilt function of the crypto module’s Hash class. This is used to update the hash with given data. This… Read More
The hash.copy( ) method is an inbuilt function of the crypto module’s Hash class. This method is used to make a copy of the current… Read More
The console.dirxml() method calls console.log() method by passing the received argument, this element does not produce any XML formatting. Syntax: console.dirxml(object_or_element) Parameters: This function accepts… Read More
The process.abort() property is an inbuilt application programming interface of the process module which is used to abort a running NodeJS process immediately. It also… Read More
The following approach covers how to convert PNG to JPG in Node.js using Jimp module. Jimp is an image processing library that we can use… Read More
Node.js supports server side functionality using Express. It allows us to add new features and organize the functionalities. While working with Express, we can set… Read More
The process.hrtime.bigint() method returns the current high-resolution real-time in nanoseconds as a bigint in NodeJS. It does not support an additional time argument because the… Read More
The crypto.setFips() method is an inbuilt application programming interface of class Crypto within the crypto module which is used to enable the FIPS compliant crypto… Read More
Sometimes developers want to serve some static asset from node_modules. Usually, we don’t want to expose any of your internal paths to the outside world.… Read More
We know NodeJS application is single-threaded. Say, if processing involves request A that takes 10 seconds, it does not mean that a request which comes… Read More