UNPKG

manifesto.js

Version:

IIIF Presentation API utility library for client and server

12 lines (8 loc) 373 B
// @todo works, but with these specific workarounds. globalThis.window = globalThis.window || {}; globalThis.fetch = require('node-fetch'); if (typeof self === 'undefined') { global.self = global; } const Manifesto = require('../dist-umd/manifesto'); Manifesto.loadManifest('https://iiif.wellcomecollection.org/presentation/v2/b18035723').then(e => console.log(e));