From a8a8b56ad793ce455f2c574d7e453c76a46c2e4c Mon Sep 17 00:00:00 2001 From: pranshuchittora Date: Sun, 29 Jul 2018 10:22:08 +0530 Subject: [PATCH] Specified module importing path clearly --- backend/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/node.js b/backend/node.js index a2a21e1..12b1b1e 100644 --- a/backend/node.js +++ b/backend/node.js @@ -73,7 +73,7 @@ ref(); // If you had previously unref()d a timer you can call ref() to explic * http://nodejs.org/api/modules.html * ******************************************************************************************* */ - +// require() accepts a relative path of the given module w.r.t. the file you are importing it in. var module = require('./module.js'); // Loads the module module.js in the same directory. module.require('./another_module.js'); // load another_module as if require() was called from the module itself.