packages/embed-plugin-youtube/src/index.js
function formatData({ snippet, id }) {
  return {
    title: snippet.title,
    thumbnail: snippet.thumbnails.medium.url,
    description: snippet.description,
    url: `${baseUrl}watch?v=${id}`,
    embedUrl: `${baseUrl}embed/${id}`
  }
}
function formatData({ snippet, id }) {
  return {
    title: snippet.title,
    thumbnail: snippet.thumbnails.medium.url,
    description: snippet.description,
    url: `${baseUrl}watch?v=${id}`,
    embedUrl: `${baseUrl}embed/${id}`
  }
}
function formatData ( { snippet , id } ) { return { title : snippet . title , thumbnail : snippet . thumbnails . medium . url , description : snippet . description , url : ` ${ baseUrl } ${ id } ` , embedUrl : ` ${ baseUrl } ${ id } ` } }
Decorate data into a simpler structure
@param data
@returns {{title, thumbnail, rawDescription, views: *, likes: *, description: *, url: string, id, host: string}}
Decorate data into a simpler structure