https://github.com/mattconsto/dice
A Jison DnD style dice roller
https://github.com/mattconsto/dice
dice dnd jison roller
Last synced: 28 days ago
JSON representation
A Jison DnD style dice roller
- Host: GitHub
- URL: https://github.com/mattconsto/dice
- Owner: mattconsto
- License: gpl-3.0
- Created: 2016-09-27T15:14:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-25T01:55:31.000Z (over 4 years ago)
- Last Synced: 2025-10-05T20:30:06.021Z (4 months ago)
- Topics: dice, dnd, jison, roller
- Language: HTML
- Homepage: https://consto.uk/dice
- Size: 223 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
dice
===
[](https://consto.uk/dice)
A Jison, DnD-style dice roller. Simply supply a string and it will parse it into a roll. Supports arithmetic, keeping high/low dice, and fudge dice.
## Usage
npm install fantasy-dice [-g]
roll 4d6h3
echo -e "var dice = require('fantasy-dice');\nconsole.log(dice("4d6h3"));" > dice.js
node dice.js