Skip to content

Tag Archives: NodeJS-function

The ensureDirSync() function is the synchronous version of ensureDir() function. The function makes sure that the directory exists, if the directory structure does not exist… Read More
The ensureLinkSync() function is the synchronous version of ensureLink(). The function makes sure that the link between the two given files exists. The source file… Read More
The tracker.report() method is used to get information about the expected and actual number of calls of the functions that have not been called the… Read More
The querystring.decode() method is used to parse a URL query string into an object that contains the key and pair values of the query URL.… Read More
The tracker.verify() method is used to verify the how many times function was actually called compared to expected number of calls. This function will throw… Read More
The querystring.encode() method is used to produce a URL query string from the given object that contains the key-value pairs. The method iterates through the… Read More
The outputJson() function writes an object to the JSON file. If the user wants to write data onto a file that doesn’t exist it will… Read More
The readJson() function reads a JSON file and then parses it into an object. If the file does not exist it will throw an error.… Read More
The ensureFileSync() function is the synchronous version of ensureFile() function. The function makes sure that the file exists, if the files do not exist it… Read More
Node.js provides two core modules for making http requests. The http module can be used to make http requests and the https module can be… Read More
The swirl() function is an inbuilt function in the GraphicsMagick library which is used around the center of the image. The degrees specify the tightness… Read More
The rotate() function is an inbuilt function in the GraphicsMagick library which is used to rotate the image by specified angle. The function returns the… Read More
The blur() function is an inbuilt function in GraphicsMagick library which is used to add blur filter to the image. The function returns the true… Read More
The sharpen() function is an inbuilt function in GraphicsMagick library which is used to sharpen the image. It uses a Gaussian operator of the given… Read More
The stroke() function is an inbuilt function in GraphicsMagick library which is used to set the color and width of the stroke used to draw… Read More

Start Your Coding Journey Now!