-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Mick Evans edited this page Aug 5, 2019
·
2 revisions
Welcome to the dicewerx wiki! Use the links on the right hand side to navigate through the wiki to find what you are looking for.
Install dicewerx into your project
npm install dicewerx --save
Import dicewerx into your script
const dicebag = require('dicewerx')
OR
import * as dicebag from 'dicewerx'
Use dicewerx freely within your script now
const expression = "4d6";
const dice = dicebag.forge(expression);
console.log(dicebag.evaluate(expression));
console.log(dicebag.rollMin(dice));
console.log(dicebag.rollMax(dice));