File and Path var normalized = path.normalize(baseDir).replace(/[\/|\\]$/, ''); var normalized = require('path').join(__dirname, 'routes');