Package Exports
- dnd5e-dice-roller
- dnd5e-dice-roller/index.ts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dnd5e-dice-roller) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dnd5e-dice-roller
Generate dice rolls based on standard trpg dice string.
For example:
- 1d4 - Simulates 1 roll of a 4 sided dice. Returns a result between 1 and 4
- d6 - Simulates 1 roll of a 6 sided dice. Returns a result between 1 and 6
- 3d8 - Simulates 3 rolls of an 8 sided dice. Returns a result between 3 and 24
- 1d6+2 - Simulates 1 roll of a 6 sided dice, plus 2. Returns a result between 3 and 8
- 1d4-1 - Simulates 1 roll of a 4 sided dice, minus 1. Returns a result between 0 and 3