How do i access the variables set using express's app.set() for e.g
app.set('view engine','jade');
app.set('jsDirectory',/js/');
From the guide, i understand that i can access the same using app.get(<key>), but this is the output of console.log(app.get('view engine')).
{ router:
{ app:
{ stack: [Object],
domain: null,
_events: [Object],
_maxListeners: 10,
_connections: 0,
connections: [Getter/Setter],
allowHalfOpen: true,
_handle: null,
httpAllowHalfOpen: false,
cache: {},
settings: [Object],
redirects: {},
isCallbacks: {},
_locals: [Object],
dynamicViewHelpers: {},
errorHandlers: [],
route: '/',
routes: [Circular],
router: [Getter],
root: 'C:\\Users\\Shahal\\Works\\App',
models: {},
extensions: {},
disconnectSchemas: [Function: disconnectSchemas],
passport: [Object] },
routes: {},
params: {},
_params: [],
middleware: [Function] } }