lib/index.js
function plugin (options) {
  if (!options) throw new Error('no options passed')
  if (!options.src) throw new Error('required: options.src')
  if (!options.dest) throw new Error('required: options.dest')
  if (!options.auth) throw new Error('required: options.auth')
  // if (options.cache !== undefined) cache = options.cache
  if (options.invalidateCache) {
    initCache().then(() => {
      dbg('invalidating cache')
      fileCache.collection.clear()
      valueCache.collection.clear()
    })
  }
  const folder = new Folder(options)
  return folder.googleDrive.bind(folder)
}
function plugin (options) {
  if (!options) throw new Error('no options passed')
  if (!options.src) throw new Error('required: options.src')
  if (!options.dest) throw new Error('required: options.dest')
  if (!options.auth) throw new Error('required: options.auth')
  // if (options.cache !== undefined) cache = options.cache
  if (options.invalidateCache) {
    initCache().then(() => {
      dbg('invalidating cache')
      fileCache.collection.clear()
      valueCache.collection.clear()
    })
  }
  const folder = new Folder(options)
  return folder.googleDrive.bind(folder)
}
### default

see README.md re: auth properties

@param {Object} options
@param {String} options.src google drive parent id folder
@param {String} options.dest path under which to place files for metalsmith
@param {Object} options.auth
@param {String} options.auth.client_id
@param {String} options.auth.client_secret
@param {Array} options.auth.redirect_uris