In my app.js I have below 3 lines.
var database = require(\'./database.js\'); var client = database.client var user = require(\'./user.js\')
Why do you use require, for scr, no prom use source. It's the same as require and we can pass args in this fuction.
require
source
var x="hello i am you"; console.log(require(x)); //error console.log(source(x)); //it will run without error