0.1.0 • Published 6 years ago

epubtype-to-aria v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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');