1- create a file in the root of the project, call its settings.js
2- add this code inside this file
module.exports = { POST_MAX_SIZE : 40 ,
3- and anytime you want your project directory to just use
var settings = require("../settings.js"); settings.PROJECT_DIR;
this way you will have all the project directories regarding this file;)
source share