#!/usr/bin/env node

'use strict';

// Disable options that don't work in Node.js 0.12.
// Gruntfile.js & tasks/*.js are the only non-transpiled files.
/* eslint-disable no-var */

var semver = require('semver');

if (semver.satisfies(process.version, '>=4.0.0')) {
    module.exports = require('./bin/cli');
} else {
    module.exports = require('./dist/bin/cli');
}

#!/usr/bin/env node

'use strict';

// Disable options that don't work in Node.js 0.12.
// Gruntfile.js & tasks/*.js are the only non-transpiled files.
/* eslint-disable no-var, no-eval */

var assert = require('assert');

try {
    assert.strictEqual(eval('(r => [...r])([2])[0]'), 2);
    module.exports = require('./bin/cli');
} catch (e) {
    module.exports = require('./dist/bin/cli');
}

Make the Node version check use arrows like in index.js