docs: function update(str, snippet, opts) {
    switch(opts.action) {
      case 'prepend':
        return snippet + str;
      case 'append':
        return str + snippet;
      case 'replace':
        return snippet;
      default: {
        return str + snippet;
      }
    }
    return str;
  }