code: function isAutostartEnabled(key, callback) {
    if (arguments.length < 1) {
      throw new Error('Not enough arguments passed to isAutostartEnabled()');
    } else if (typeof key !== 'string') {
      throw new TypeError('Passed "key" to disableAutostart() is not a string.');
    }
  
    if (typeof callback !== 'function') {
      return new Promise((resolve, reject) => {
        autostart.isAutostartEnabled(key, (error, isEnabled) => {
          if (error) {
            reject(error);
          } else {
            resolve(isEnabled);
          }
        });
      });
    }
  
    autostart.isAutostartEnabled(key, (error, isEnabled) => {
      callback(error, isEnabled);
    });
  }
docs: Checks if autostart is enabled
  @param {String} key
  @param {Function} callback