npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@metyatech/tracklms-to-qti-results

v0.4.0

Published

Convert Track LMS exports into QTI 3.0 Results Reporting XML.

Readme

tracklms-to-qti-results

Convert Track LMS CSV exports into QTI 3.0 Results Reporting XML.

Compatibility

  • Node.js >= 20.11.0
  • npm
  • Windows, macOS, and Linux

Setup

npm install

CLI usage

tracklms-to-qti-results <input.csv|-> \
  [--timezone Asia/Tokyo] \
  [--output <output_dir|->] \
  [--assessment-test <assessment-test.qti.xml>] \
  [--only-status <status>] \
  [--dry-run] \
  [--json] \
  [--yes]

Examples:

npx @metyatech/tracklms-to-qti-results input.csv --output qti-results
npx @metyatech/tracklms-to-qti-results input.csv --only-status Completed
npx @metyatech/tracklms-to-qti-results input.csv --dry-run --json
npx @metyatech/tracklms-to-qti-results input.csv --output -

Options

  • <input.csv|->: Track LMS CSV export path, or - to read from stdin.
  • --timezone <name>: Timezone for startAt/endAt conversion. Defaults to Asia/Tokyo.
  • --output, --out-dir <dir|->: Output directory. Defaults to <input_dir>/qti-results, or ./qti-results when reading stdin. Use - to emit a single XML document to stdout.
  • --assessment-test <path>: QTI assessment test XML for rubric-based scoring.
  • --only-status <status>: Include only rows with the specified Track LMS status. Repeat to allow multiple statuses.
  • --dry-run: Preview planned outputs without writing files.
  • --json: Emit a machine-readable summary to stdout.
  • --yes, --force: Overwrite existing files without prompting.
  • --quiet: Suppress non-error logs.
  • --verbose, -v: Enable verbose logs.
  • --trace: Enable debug logs.
  • --version, -V: Show version.
  • --help, -h: Show help.

Library usage

import { readFileSync, writeFileSync } from "node:fs";
import { convertCsvTextToQtiResults } from "@metyatech/tracklms-to-qti-results";

const csvText = readFileSync("tracklms-export.csv", "utf8");
const results = convertCsvTextToQtiResults(csvText, { timezone: "Asia/Tokyo" });

for (const result of results) {
  writeFileSync(`assessmentResult-${result.resultId}.xml`, result.xml, "utf8");
}

Notes:

  • One XML document is produced per input row with an endAt value.
  • The timezone option applies to Track LMS startAt and endAt values.
  • allowedStatuses can filter rows programmatically.
  • With --assessment-test, rubric outcomes are derived from referenced item sources. Descriptive items set rubric criteria to false; choice and cloze items set criteria to true when q{n}/score is non-zero.
  • With --assessment-test, choice responses use the referenced QTI item's actual qti-simple-choice/@identifier values. Track LMS choice numbers are treated as 0-based indexes into those choices.

Documents

Development commands

npm run build
npm test
npm run lint
npm run format:check
npm run typecheck
npm run verify

Environment variables

None.

Release

Publishing is automated by the Release GitHub Actions workflow using npm Trusted Publishing (OIDC). No npm tokens are stored in the repository.

  1. Update CHANGELOG.md with the new version section.
  2. Update package.json version.
  3. Run npm install and npm run verify.
  4. Commit the changes and push to main.
  5. Create and push a matching v<version> tag (for example git tag v0.4.0 && git push origin v0.4.0).
  6. The Release workflow runs verification, confirms the tag matches package.json, and publishes to npm.
  7. Create a GitHub Release for the tag.

The npm package's Trusted Publisher must be configured to allow the metyatech/tracklms-to-qti-results repository's .github/workflows/release.yml workflow before the first automated publish.

Agent rules

This repository uses composed agent rules.