npm node.js read from root running dir code example Example: node get root directory path.resolve("./")