function checkNodeVersion() {
  var semver = require('semver');

  if (!semver.satisfies(process.version, packageJson.engines.node)) {
    console.error(
      'You are currently running Node %s but %s requires %s. Please use a supported version of Node.\n',
      process.version,
      packageJson.name,
      packageJson.engines.node
    );
    process.exit(1);
  }
}
This script will ensure that users are using a supported version of node
for the project.

NOTE: Ensure this script uses ES5 only as the user may be running an old
version of Node, which this script wants to test against.