A bare bones ts-parsec diceroller for easy embedding
npm install mini-dicerollerA mini language written using ts-parsec to evaluate a string of rolled dice with arthritic expressions
(1d20 + 2) * 21d20 + 17 - 81d20 / 2npm run test - Runs test suitnpm run build - Runs and outputs compiled typescript
[mini-diceroller]$ node
> const cmd = await import("./dist/index.js")
> cmd.cmdEvaluate("1d20 + 2")
'[13] + 2 > 15'
``