posthtml-rename-attrs
PostHTMLRenameAttrs is plugin for PostHTML. It rename HTML tags attrs with passed function.
Usage
const posthtml =html = '<div class="wow">OMG</div>';const prefix = v === 'class' ? `prefix-` : v;;// <div prefix-class="wow">OMG</div>