How to get module object information in Node.js

1 Answer

0 votes
console.log(module);

   
   
  
   
/*
run:
   
Module {
  id: '.',
  path: 'c:\\JavaScript',
  exports: {},
  parent: null,
  filename: 'c:\\JavaScript\\test.js',
  loaded: false,
  children: [],
  paths: [ 'c:\\JavaScript\\node_modules', 'c:\\node_modules' ]
}
   
*/

 



answered Mar 1, 2020 by avibootz

Related questions

1 answer 160 views
1 answer 249 views
1 answer 453 views
1 answer 365 views
4 answers 369 views
1 answer 94 views
...