2.0.2 • Published 5 years ago
dicewerx v2.0.2
dicewerx
npm package for handling standard dice notation
A standard dice notation parser and evaluator. Can handle standard dice notation expressions and returns the results of the expression as a number.
Examples
evaluate("1d20") // Rolls one d20
evaluate("4d6-L") // Rolls 4 d6 and drops the lowest result
evaluate("4d4*10") // Rolls 4 d4 and multiples the result by 10
evaluate("4d6-L+50") // Rolls 4 d6, drops the lowest, then adds 50 to the result
evaluate("1d20!") // Rolls 1 d20, rolling again on a 20
evaluate("4d6!-5") // Rolls 4 d6, rolling again on a 6 then subtracting 5 from the result
Roadmap
- Nested expression support
- Major cleanup
2.0.3
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.4.3
5 years ago
1.4.1
5 years ago
1.4.0
5 years ago
1.3.0
5 years ago
1.2.2
5 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago