1.0.0 • Published 3 years ago

dicerollacoaster v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Dice Roller

Roll any dice you require for you DnD sessions.

Installation

npm i diceroller

How to use

const diceroller = require("diceroller");

// Roll a D20
const rollResult = diceroller.rollDice(diceroller.D20);

// Roll two D20
const rollResult2 = diceroller.rollDice(diceroller.D20, 2);

// Roll a D20 with +2 modifier
const rollResult3 = diceroller.rollDice(diceroller.D20, 1, 2);