1.3.2 • Published 3 months ago
mini-prophecy-diceroller v1.3.2
Mini Prophecy Diceroller
A mini language written using ts-parsec to evaluate a string of rolled dice with arthritic expressions
Supported Tokens
- Parenthesis -
(1d20 + 2) * 2
- Addition/Subtraction -
1d20 + 17 - 8
- Multiplication/Division -
1d20 / 2
npm Commands
npm run test
- Runs test suitnpm run build
- Runs and outputs compiled typescriptnpx ts-node src/cmd.ts '1d20 * 2 + 1d6'
- Evaluate a roll from the command line