新增于: v0.1.8
process.cwd()
方法返回 Node.js 进程的当前工作目录。
console.log(`Current directory: ${process.cwd()}`);
Added in: v0.1.8
The process.cwd()
method returns the current working directory of the Node.js
process.
console.log(`Current directory: ${process.cwd()}`);