examsim
v0.0.0-alpha.0
Published
A CLI tool for generating simulated exam answer sheets with configurable scoring targets.
Readme
examsim
A CLI tool for generating simulated exam answer sheets with configurable scoring targets.
Usage
- Create
examsim.config.ts:
import { defineConfig } from 'examsim'
export default defineConfig({
questions: [
{ type: 'single', answer: 'A' },
{ type: 'judge', answer: true },
{ type: 'multi', answer: ['A', 'B', 'C'] },
],
scoring: {
single: { score: 1 },
judge: { score: 1 },
multi: { score: 1.5, partial: 0.5 },
},
candidates: [
{ name: 'Alice', target: { type: 'range', min: 80, max: 95 } },
{ name: 'Bob', target: { type: 'gte', value: 60 } },
],
})- Generate Result
npx examsimexam_results.xlsx will be generated with a summary sheet and individual answer sheets for each candidate.
License
MIT License © jinghaihan
