pivot for path hierarchy in Node.js projects