Skip to content

Category Archives: Node.js

The emboss() function is an inbuilt function in the GraphicsMagick library which is used to emboss an image which means that each pixel of the… Read More
The Constructor: new vm.Script() method creates a new vm.Script object and compiles the stated code but it does not run the code. Moreover, the compiled… Read More
The fs.linkSync() method is used to synchronously create a hard link to the specified path. The hard link created would still point to the same… Read More
The vm.createContext() method is used to create a single context that can be utilized to run more than one scripts. Moreover, if the stated contextObject… Read More
The shave() function is an inbuilt function in the GraphicsMagick library which is used to shave the image pixels from the edges which specify the… Read More
The solarize() function is an inbuilt function in the GraphicsMagick library which is used to negate all pixels above the threshold level. The function returns… Read More
The fs.ftruncate() method is used to change the size of the file i.e. either increase or decrease the file size. It changes the length of… Read More
The spread() function is an inbuilt function in the GraphicsMagick library which is used to displace image pixels by a random amount. The function returns… Read More
The process.uptime() method is an inbuilt application programming interface of the process module which is used to get the number of seconds the Node.js process… Read More
The vm.runInThisContext() method compiles the code, runs it inside the context of the current global and then returns the output. Moreover, the running code has… Read More
Around one decade back (in 2009) when Ryan Dahl (the original developer of NodeJS) released the initial version of NodeJs nobody could have imagined that… Read More
The vm.isContext() method is an inbuilt application programming interface of the vm module which is used to check if the stated object is being contextified… Read More
The zlib.bytesWritten property is an application programming interface of zlib module which is used to specify the number of bytes written to the engine before… Read More
The script.runInNewContext() method first contextifies the stated contextObject, runs the compiled code inside the vm.Script object within the context created and then returns the output.… Read More
The script.runInContext() method is used to run the compiled code which is present inside the vm.Script object within the stated contextifiedObject and returns the output.… Read More

Start Your Coding Journey Now!