qti-xml-core
v0.1.4
Published
Minimal, dependency-free helpers for parsing QTI 3.0 XML with DOMParser.
Maintainers
Readme
qti-xml-core
Minimal, dependency-free helpers for parsing QTI XML with DOMParser.
Overview
This library provides small, focused utilities for parsing QTI 3.0 XML using the runtime's DOMParser.
Install
npm install qti-xml-coreSetup
- Uses the runtime DOMParser when available; falls back to @xmldom/xmldom in Node.
Usage
import {
extractItemIdentifier,
parseAssessmentItemRefsFromXml,
parseAssessmentTestXml,
parseResultItemRefsFromXml,
parseResultsXmlRaw,
resolveAssessmentHref,
resolveRelativePath,
} from "qti-xml-core";Development commands
- Build:
npm run build - Test:
npm test - Lint:
npm run lint - Format:
npm run format - Typecheck:
npm run typecheck - Verify (all checks):
npm run verify
Publishing
This package is published to npm as qti-xml-core.
