ALL THE DICE
All the dice is a library to calculate RPG dice notation.
Installation
npm install all-the-dice
Example
import { roll } from "all-the-dice";
console.log(roll("2d12 + 3"))
// any integer between 5 and 27
All the dice is a library to calculate RPG dice notation.
npm install all-the-dice
import { roll } from "all-the-dice";
console.log(roll("2d12 + 3"))
// any integer between 5 and 27
npm i all-the-dice
2
1.1.3
MIT
5.26 kB
10