@half-elf/rogue
v1.0.1
Published
Utility library for all underhanded d20 needs.
Downloads
9
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;