best way to find path from any node to root code example Example: node get root directory path.resolve("./")