Answers for "change cwd node"

0

change cwd node

console.log('Starting directory: ' + process.cwd());
try {
  process.chdir('/tmp');
  console.log('New directory: ' + process.cwd());
}
catch (err) {
  console.log('chdir: ' + err);
}
Posted by: Guest on October-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language