Suppose there are 2 files in my nodejs app say index.js,users.js
Sample code for index.js :
var express = require('express');
var app = express();
var winston = require('winston');
....
var signup=require('./apis/users.js');
app.use('/apis/signup',signup);
Sample code for users.js
var express = require('express');
var winston = require('winston');
....
Now we are including express and winston twice in our app.so does that hampers my app performance.What if I say need to include winston only once and use that same object everywhere in app.Whats the right way to do this and in which case we should do what.