src/versionLoader.js
function getMyVersion(buildDir) {
  var builds = getBuildFiles(buildDir);
  var chosen = builds[0];

  for (var n=0; n<builds.length; n++) {
    if (semvar.satisfies(getVersion(builds[n]), '<=' + process.versions.node)) chosen = builds[n];
  }

  return require(buildDir + '/' + chosen);
}
function getMyVersion(buildDir) {
  var builds = getBuildFiles(buildDir);
  var chosen = builds[0];

  for (var n=0; n<builds.length; n++) {
    if (semvar.satisfies(getVersion(builds[n]), '<=' + process.versions.node)) chosen = builds[n];
  }

  return require(buildDir + '/' + chosen);
}
function getMyVersion ( buildDir ) { var builds = getBuildFiles ( buildDir ) ; var chosen = builds [ 0 ] ; for ( var n = 0 ; n < builds . length ; n ++ ) { if ( semvar . satisfies ( getVersion ( builds [ n ] ) , '<=' + process . versions . node ) ) chosen = builds [ n ] ; } return require ( buildDir + '/' + chosen ) ; }
Get current node version a retrieve built file for that version.

@param {string} buildDir   Where build files are located.
@returns {string}          The build file to use.
Get current node version a retrieve built file for that version .