Skip to content

Tag Archives: Node.js-Basics

The global installation of dependencies in Node.js is putting global packages in a single place in the system exactly where it depends on your setup,… Read More
Node.js is based on an event-driven non-blocking I/O model. This article discusses what does Blocking and Non-Blocking in Node.js means. Blocking: It refers to the… Read More
Error-First Callback in Node.js is a function which either returns an error object or any successful data returned by the function. The first argument in… Read More
The __dirname string gives the directory path of the current module, this is also similar to that of path.dirname() of the filename. Return Value :… Read More
Software developers are turning their eyes on the popular JavaScript framework NodeJS for all further developments into software solutions. The hike in demand for this… Read More
The __filename in the Node.js returns the filename of the code which is executed. It gives the absolute path of the code file. The following… Read More
Node.js is a JavaScript runtime that’s built on Chrome’s V8 JavaScript engine and its run-time environment includes everything which we’d like to execute a program… Read More
Each JavaScript file is treated as a separate module in NodeJS. It uses commonJS module system : require(), exports and module.export. The main object exported… Read More
Both process.stdout.write and console.log in NodeJS have basic functionality to display messages on the console. Basically console.log implement process.stdout.write while process.stdout.write is a buffer/stream that… Read More
The timer module is used for scheduling functions which will be called at some future period of time. It is a global API So, there… Read More
The timer module is used for scheduling functions which will be called at some future period of time. It is a global API So, there… Read More
Node.js is an open-source project widely used for the development of dynamic web applications. The URLSearchParams API in Node.js allows read and write operations on… Read More
What is inspector in Node.js? Inspector in node.js is a debugging interface for node.js application that is contained in the app.js file and used blink… Read More
Node.js is a web development framework that offers a variety of modules to work with. Usually, Node.js allows single-threaded, non-blocking performance but running a single… Read More
In Node.js, Modules are the blocks of encapsulated code that communicates with an external application on the basis of their related functionality. Modules can be… Read More