Package Exports
- @half-elf/rogue
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 (@half-elf/rogue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Rogue
Utility library for all underhanded d20 needs.
Usage
Dice library
const { roll } = require('@half-elf/rogue');
const singleRoll = roll('d20');
const weirdCompositeRoll = roll('(d4)d6 + 4');
const rollWithOptions = roll('20d4', { max: true, min: true, avg: true });
const { total, max, min, avg } = rollWithOptions;