UNPKG

@mateo-wallace/rpg-dice-js

Version:

Npm package that allows users to roll dice with all math and various forms of response

8 lines (6 loc) 189 B
import roll from "./dist/esm/index.js" // const result = roll("6d2 + 6") // console.log(result.result) // console.log(result.total) const random = roll("200d2") console.log(random)