dicelang
A JavaScript interpreter for Roll20's Dice Specification.
Installing
npm i --save dicelang
Usage
See the doc
directory for full documentation.
TypeScript
; ;alertd.roll; // 20alertd.roll; // 1alertd.roll; // 12
ES6
; let d = 'd20';; // 11; // 5; // 17
License
This software is licensed under the terms of the MIT license. See the LICENSE
file.
The Roll20 Dice Specification is provided under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported license (CC BY-NC-SA 3.0) by The Orr Group, LLC.
See the CC-BY-NC-SA-3.txt
file or the Creative Commons website.