nodejs 获取当前路径的方法

var path = require("path");

var url = path.resolve('./');