excellent-choice
v0.1.2
Published
Excel-based multi-choice testing
Downloads
1
Maintainers
Readme
🏆 excellent-choice
Excel-based multiple-choice testing
- 💪 TypeScript. Fully typed and self-documenting!
🚀 Quick Start
Install
# npm
npm i excellent-choice
# or yarn
yarn add excellent-choice
Import
// ESM / TypeScript
import { parse, parseFile } from "excellent-choice";
// or CommonJS
const { parse, parseFile } = require("excellent-choice");
Example Usage
// 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
⚖ License
excellent-choice is licensed under the MIT License
.