How to use the nw.gui.me function in nw

To help you get started, we’ve selected a few nw examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jiahuanyu / android-example-code / node_modules / fsevents / node_modules / node-pre-gyp / lib / util / nw-pre-gyp / index.html View on Github external
function nwModuleTest(){
   var util = require('util');
   var moduleFolder = require('nw.gui').me.jiahuan.androidlearn.App.argv[0];
   try {
      require(moduleFolder);
   } catch(e) {
      if( process.platform !== 'win32' ){
         util.log('nw-pre-gyp error:');
         util.log(e.stack);
      }
      process.exit(1);
   }
   process.exit(0);
}