redroll
Version:
Native-ESM dice-roller using dice notation
12 lines (8 loc) • 317 B
Markdown
Redroll is a native-ESM dice-roller based on [droll](https://github.com/thebinarypenguin/droll). It accepts input in [dice notation](http://en.wikipedia.org/wiki/Dice_notation).
```JavaScript
import { roll } from 'https://esm.sh/redroll'
console.log(roll('3d6+1'))
//> 5 + 3 + 4 + 1 = 13
```