function buildOptions (filePath, basePath, data) {
  const fileName = basename(filePath, extname(filePath))
  const match = fileName.match(DATE_IN_FILE_REGEX)
  const { birthtime } = statSync(filePath)

  const path = relative(basePath, dirname(filePath))
  const name = (match) ? match[NAME_MATCH_INDEX] : fileName
  const createdOn = JSON.stringify((match) ? new Date(match[DATE_MATCH_INDEX]) : birthtime)

  return {
    filePath,
    path,
    name,
    mimeType: mime.getType(filePath),
    createdOn,
    extra: { ...data },
    async load () {
      return asyncReadFile(filePath, { encoding: 'utf-8' })
    }
  }
}
Create a buildOptions
@param {*} filePath
@param {*} basePath
@param {Object} data