I want to separate some functions into a file named helpers.js, in which I have put the below shown code. What should I do to access the app variable from inside my method in order to be able to fetch my config element named Path?
Helpers = { fs: require('fs'), loadFileAsString: function(file) { return this.fs.readFileSync( app.set('Path') + file)+ ''; } } module.exports = Helpers;