@half-elf/rogue
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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;

/@half-elf/rogue/

    Package Sidebar

    Install

    npm i @half-elf/rogue

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.15 kB

    Total Files

    7

    Last publish

    Collaborators

    • sindrekjr