0.1.0 • Published 6 years ago
epubtype-to-aria v0.1.0
epub:type to aria-role transformator
A script to append aria doc roles based on epub:type.
Based on gist
Installation
npm install epubtype-to-aria
Usage
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');
0.1.0
6 years ago