#!/usr/bin/env node // Dependencies var cli = require('../index.js'); var pkg = require('../package.json'); var updateNotifier = require('update-notifier'); // Check for update var notifier = updateNotifier({ packageName: pkg.name, packageVersion: pkg.version, updateCheckInterval: 1000 * 60 * 60 * 24 * 7 }); // Notify if update available if (notifier.update) { notifier.notify(); } // Run the command cli.run(process.argv);