How To Use __dirname in Node.js
__dirname is an environment variable that tells you the absolute path of the directory containing the currently executing file. In this article, you will explore how to implement __dirname it in your Node.js…
__dirname is an environment variable that tells you the absolute path of the directory containing the currently executing file. In this article, you will explore how to implement __dirname it in your Node.js…
This topic is about Node.js - Packaging. JXcore, which is an open source project, introduces a unique feature for packaging and encryption of source files and other assets into JX packages.…
This topic is about Node.js - Scaling Application. Node.js runs in a single-thread mode, but it uses an event-driven paradigm to handle concurrency. It also facilitates creation of child processes…
This topic is about Node.js - RESTful API. What is REST architecture? REST stands for REpresentational State Transfer. REST is web standards based architecture and uses HTTP Protocol. It revolves…
This Topic is about Node.js - Express Framework. Express Overview Express is a minimal and flexible Node.js web application framework that provides a robust set of features to develop web…
This topic is about Node.js - Web Module. What is a Web Server? A Web Server is a software application which handles HTTP requests sent by the HTTP client, like…
Node.js global objects are global in nature and they are available in all modules. We do not need to include these objects in our application, rather we can use them…
This topic is about Node.js - File System. Node implements File I/O using simple wrappers around standard POSIX functions. The Node File System (fs) module can be imported using the…
This topic is about Node.js - Streams. What are Streams? Streams are objects that let you read data from a source or write data to a destination in continuous fashion.…
This chapter is about Node.js - Buffers. Pure JavaScript is Unicode friendly, but it is not so for binary data. While dealing with TCP streams or the file system, it's…