index.js
function (callback) {
    if (!scanner) {
      initTools(function (err, s) {
        if (err) {
          return callback(err);
        }
        scanner = s;
        scanNetworks(callback);
      });
      return;
    }
    scanNetworks(callback);
  }
function (callback) {
    if (!scanner) {
      initTools(function (err, s) {
        if (err) {
          return callback(err);
        }
        scanner = s;
        scanNetworks(callback);
      });
      return;
    }
    scanNetworks(callback);
  }
function ( callback ) { if ( ! scanner ) { initTools ( function ( err , s ) { if ( err ) { return callback ( err ) ; } scanner = s ; scanNetworks ( callback ) ; } ) ; return ; } scanNetworks ( callback ) ; }
Scan for wifis
@param callback
Scan for wifis