lib/extensions.js
function getHumanEnvironment(env) {
  var binding = env.replace(/_binding\.node$/, ''),
    parts = binding.split('-'),
    platform = getHumanPlatform(parts[0]),
    arch = getHumanArchitecture(parts[1]),
    runtime = getHumanNodeVersion(parts[2]);

  if (parts.length !== 3) {
    return 'Unknown environment (' + binding + ')';
  }

  if (!platform) {
    platform = 'Unsupported platform (' + parts[0] + ')';
  }

  if (!arch) {
    arch = 'Unsupported architecture (' + parts[1] + ')';
  }

  if (!runtime) {
    runtime = 'Unsupported runtime (' + parts[2] + ')';
  }

  return [
    platform, arch, 'with', runtime,
  ].join(' ');
}
function getHumanEnvironment(env) {
  var binding = env.replace(/_binding\.node$/, ''),
    parts = binding.split('-'),
    platform = getHumanPlatform(parts[0]),
    arch = getHumanArchitecture(parts[1]),
    runtime = getHumanNodeVersion(parts[2]);

  if (parts.length !== 3) {
    return 'Unknown environment (' + binding + ')';
  }

  if (!platform) {
    platform = 'Unsupported platform (' + parts[0] + ')';
  }

  if (!arch) {
    arch = 'Unsupported architecture (' + parts[1] + ')';
  }

  if (!runtime) {
    runtime = 'Unsupported runtime (' + parts[2] + ')';
  }

  return [
    platform, arch, 'with', runtime,
  ].join(' ');
}
function getHumanEnvironment ( env ) { var binding = env . replace ( / _binding\.node$ / , '' ) , parts = binding . split ( '-' ) , platform = getHumanPlatform ( parts [ 0 ] ) , arch = getHumanArchitecture ( parts [ 1 ] ) , runtime = getHumanNodeVersion ( parts [ 2 ] ) ; if ( parts . length !== 3 ) { return 'Unknown environment (' + binding + ')' ; } if ( ! platform ) { platform = 'Unsupported platform (' + parts [ 0 ] + ')' ; } if ( ! arch ) { arch = 'Unsupported architecture (' + parts [ 1 ] + ')' ; } if ( ! runtime ) { runtime = 'Unsupported runtime (' + parts [ 2 ] + ')' ; } return [ platform , arch , 'with' , runtime , ] . join ( ' ' ) ; }
Get a human readable description of where node-sass is running to support
user error reporting when something goes wrong

@param  {string} env - The name of the native bindings that is to be parsed
@return {string} A description of what os, architecture, and Node version
that is being run

@api public
Get a human readable description of where node - sass is running to support user error reporting when something goes wrong