text: const child_process = require('child_process');
  
  function localAddress(callback) {
    child_process.exec('system_profiler SPBluetoothDataType', {}, (error, stdout, stderr) => {
      let address = null;
  
      if (!error) {
        const found = stdout.match(/\s+Address: (.*)/);
        if (found) {
          address = found[1].toLowerCase().replace(/-/g, ':');
        }
      }
  
      callback(address);
    });
  }
  
  module.exports = localAddress;
  