contentBase64 (params = {}) {
    const fields = this.fields || {}
    const body = this.body || ''

    return Buffer.from(`---\n${yaml.safeDump(fields)}\n---\n${body}\n`).toString('base64')
  }
/**
   * Transform this CollectionItem into base64 content (to be sent to github)
   *
   * @param {Object} [params] - Additional params (sent to github)
   * @returns {String} - Returns base64 encoded string of Jekyll style file content
   */
Transform this CollectionItem into base64 content (to be sent to github)
@param {Object} [params] - Additional params (sent to github)
@returns {String} - Returns base64 encoded string of Jekyll style file content
Transform this CollectionItem into base64 content ( to be sent to github ) @param { Object } [ params ] - Additional params ( sent to github ) @returns { String } - Returns base64 encoded string of Jekyll style file content
contentBase64 (params = {}) {
    const fields = this.fields || {}
    const body = this.body || ''
    return Buffer.from(`---\n${yaml.safeDump(fields)}\n---\n${body}\n`).toString('base64')
  }
contentBase64 ( params = { } ) { const fields = this . fields || { } const body = this . body || '' return Buffer . from ( ` \n ${ yaml . safeDump ( fields ) } \n \n ${ body } \n ` ) . toString ( 'base64' ) }
Transform this CollectionItem into base64 content (to be sent to github)
 @param {Object} [params] - Additional params (sent to github)
 @returns {String} - Returns base64 encoded string of Jekyll style file content
Transform this CollectionItem into base64 content ( to be sent to github ) @param { Object } [ params ] - Additional params ( sent to github ) @returns { String } - Returns base64 encoded string of Jekyll style file content