function getPlatformVariant() {
  var contents = '';

  if (process.platform !== 'linux') {
    return '';
  }

  try {
    contents = fs.readFileSync(process.execPath);

    // Buffer.indexOf was added in v1.5.0 so cast to string for old node
    // Delay contents.toStrings because it's expensive
    if (!contents.indexOf) {
      contents = contents.toString();
    }

    if (contents.indexOf('libc.musl-x86_64.so.1') !== -1) {
      return 'musl';
    }
  } catch (err) { } // eslint-disable-line no-empty

  return '';
}
function getPlatformVariant() {
  var contents = '';

  if (process.platform !== 'linux') {
    return '';
  }

  try {
    contents = fs.readFileSync(process.execPath);

    // Buffer.indexOf was added in v1.5.0 so cast to string for old node
    // Delay contents.toStrings because it's expensive
    if (!contents.indexOf) {
      contents = contents.toString();
    }

    if (contents.indexOf('libc.musl-x86_64.so.1') !== -1) {
      return 'musl';
    }
  } catch (err) { } // eslint-disable-line no-empty

  return '';
}
function getPlatformVariant ( ) { var contents = '' ; if ( process . platform !== 'linux' ) { return '' ; } try { contents = fs . readFileSync ( process . execPath ) ; // Buffer.indexOf was added in v1.5.0 so cast to string for old node // Delay contents.toStrings because it's expensive if ( ! contents . indexOf ) { contents = contents . toString ( ) ; } if ( contents . indexOf ( 'libc.musl-x86_64.so.1' ) !== - 1 ) { return 'musl' ; } } catch ( err ) { } // eslint-disable-line no-empty return '' ; }
Gets the platform variant, currently either an empty string or 'musl' for Linux/musl platforms.

@api public
Gets the platform variant currently either an empty string or musl for Linux / musl platforms .
Get the platform variant