Excel-based multiple-choice testing
- ๐ช TypeScript. Fully typed and self-documenting!
# npm
npm i excellent-choice
# or yarn
yarn add excellent-choice
// ESM / TypeScript
import { parse, parseFile } from "excellent-choice";
// or CommonJS
const { parse, parseFile } = require("excellent-choice");
// Parse an ArrayBuffer (.xlsx file data)
const tests = parse(...);
// => An object of test name => test questions
Alternatively, you can use parseFile
to automate the file reading process:
// Parse an .xlsx file
const tests = parseFile('your-file.xlsx');
// => An object of test name => test questions
excellent-choice is licensed under the MIT License
.