Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
/ excellent-choice Public archive
generated from lukecarr/ts

๐Ÿ† Excel-based multi-choice testing

License

Notifications You must be signed in to change notification settings

lukecarr/excellent-choice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ† excellent-choice

Excel-based multiple-choice testing

npm Code Climate maintainability npms.io (quality) Snyk Vulnerabilities for npm package npm bundle size

  • ๐Ÿ’ช 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.