audiobooks-js

Version: 0.2.7

This is a spec-compliant audiobooks manifest processor. Given JSON input, it performs the processing steps as described in both pub-manifest spec and audiobooks.

These rules dictate how to process and normalize the manifest data, so, for example, all the URLs get resolved, all the invalid values removed, any errors get reported, and anything that’s not in an object or array and should be, is. There are also a handful of convenience functions for getting localizable strings and navigating the reading order.

To use it, copy audiobooks.js to your project.

I wrote this to help with some demos I’m working on. My target is the browser, and I wrote this processor as an ES6 module. It would be easy enough to port to other environments.

PRs welcome!

Links

To run anything locally (examples, tests), first start a web server, e.g. npx http-serve -c-1.

Caveats

Does not (at the moment):