code: function saveData(data) {
      console.log('saving data', data);
      if (options.cacheKeys) {
        cachedKeys = Object.keys(data);
      }
      if (file === false) {
        return Promise.resolve();
      } else {
        return writeFile(file, JSON.stringify(data, null, 2));
      }
    }
docs: @private
  Saves the data to the file
  
  @param {*} data Data to save to file
  
  @returns {Promise} A promise that resolves to the data