JavaScript version that can run in node or browser
bvibber opened this issue · comments
Per discussion at the BL meeting there's some interest in a JavaScript version of this which could be used to recode version 2 manifests to 3 on the fly, such as in a v3 web viewer. (Or could be run in a server context via node.)
I can give this a try; it looks pretty straightforward, the main required difference being that URI dereferencing in fix_objects() needs to be done asynchronously.
Should I make a PR against this repo or make my own separate one?
Given the different testing needed, probably easiest to have its own repo. Would be great to have a JS implementation!
We have a direct-port version available of the converter in javascript here. May not be up-to-date with the new beta specification though. updated link