Home » Archives for Himansh Jain

Author Archives: Himansh Jain

Works as the technical leader of an ADF Development team, An active member of OTN Jdev/ADF Forum of Oracle Community. He has written more than 200 article about Oracle ADF and JDeveloper. Many of his articles got published in WebLogic community newsletter and Oracle ACE newsletter from time to time. Awarded with Oracle ACE title (♠️) in the year 2015 for his contribution in Oracle Technology Network.

Caching of Modules in NodeJS

In this post, I am talking about caching of Modules in NodeJS. We have the following files 1 2 3 4 5 6 7 //greet.js module.exports = {     greeting: "Hello!",     greet: function(){         console.log(this.greeting);     } } 01 02 03 04 05 06 07 08 09 10 //app.js var greet1 = require("./module/greet"); greet1.greet(); greet1.greeting = "Yooo!"; greet1.greet();       var greet2 ...

Read More »

Exports vs module.exports in NodeJs, Which one to use?

We know that when our code is run through the node it’s wrapped in a function expression. This enables us to access the module object which is a parameter passed to that function. 1 2 3 (function (exports, require, module, __filename, __dirname) {     //module code }); This function expression is then invoked with the following arguments: 1 fn(module.exports, require, module, ...

Read More »

How NodeJs Processes Modules?

We all know that to execute a node application, we have to type the command. In this post, we’ll see how NodeJS processes Modules. whereapp.jsis the entry point to our application. But seldom do we wonder about what’s happening when we type this command. How does the node magically come to take our js file and executes it? This is ...

Read More »