Package Exports
- simple-roll-dice
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 (simple-roll-dice) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Simple Roll Dice
A simple dice rolling library
Install
npm i simple-roll-diceUsage
const DiceMod = require("simple-roll-dice");
let diceMod = new DiceMod.DiceMod();
console.log(diceMod.roll("2d6"));roll parameter, example (2d6)
- 2 - number of dice
- 6 - number of faces
Will return dice, and their sum.