Node.js __dirname get current folder name

Description

Node.js __dirname get current folder name


console.log('__filename='+__filename);
console.log('__dirname='+ __dirname);

setTimeout(function(){
  console.log('world!!');
}, 2000);/*from w ww.j  a  va  2  s.  c  o m*/

console.log('hello ');



PreviousNext

Related