@citolab/qti-browser-import
v0.4.0
Published
Browser-side QTI package import and cache URL rewriting
Keywords
Readme
@citolab/qti-browser-import
Browser-side helpers for importing QTI packages, caching extracted files, and normalizing PCI asset paths.
Install
npm install @citolab/qti-browser-importPeer dependencies:
npm install @citolab/qti-convert @citolab/qti-convert-tao-pciExports
- package cache helpers from
qti-package-cache - import helpers from
import-qti-package - upgrader stylesheet helpers from
upgrader-stylesheet - PCI helpers from
pci-helpers
Example
import { makePackageUrl, normalizeZipPath } from '@citolab/qti-browser-import';
const path = normalizeZipPath('items/item.xml');
const url = makePackageUrl('demo-package', path);License
Apache-2.0
