A script to append aria doc roles based on epub:type.
Based on gist
npm install epubtype-to-aria
const epubTypeTransformer = require('epubtype-to-aria');
const html = fs.readFileSync('path/to/index.html', 'utf-8');
fs.writeFileSync('path/to/index.html', epubTypeTransformer(html), 'utf8');