I'm new to nodejs.
Can anyone tell me how to replace all '\' to '/' ? Thanks.
my code:console.log(process.cwd());
result:e:\Workspace\WebStorm\Ren\LittleCase
I have tried the following methods:
console.log(process.cwd().replace('\\','/'));
However, only the first to be successfully replaced.like this:
e:/Workspace\WebStorm\Ren\LittleCase