@longmo-utils/node / getCwd
Function: getCwd()
ts
function getCwd(): string;获取当前工作目录
Returns
string
当前工作目录路径
Example
ts
const cwd = getCwd()
console.log(cwd) // '/path/to/current/directory'