var path = require('path'); var fs = require('fs'); console.log(path.join("/etc/", "password.txt"));