@lde/iiif-validator
v0.4.0
Published
Validates that a URL dereferences to a valid [IIIF Presentation](https://iiif.io/api/presentation/) Manifest. A small building block for Linked Data tooling that needs to tell a _declared_ IIIF manifest apart from one that actually resolves, parses, and l
Readme
@lde/iiif-validator
Validates that a URL dereferences to a valid IIIF Presentation Manifest. A small building block for Linked Data tooling that needs to tell a declared IIIF manifest apart from one that actually resolves, parses, and loads in a real viewer.
Installation
npm install @lde/iiif-validatorimport { validateManifest } from '@lde/iiif-validator';
const verdict = await validateManifest('https://example.org/manifest.json');
if (verdict.valid) {
// verdict.reason === 'valid-manifest'
}Documentation
See the full documentation.
