• 返回: {string}

    process.cwd() 方法会返回 Node.js 进程的当前工作目录。

    1. console.log(`当前工作目录是: ${process.cwd()}`);