rollin (urban assault vehicle, natch)
A little library for doing dice rolls.
Install
npm install rollin
Usage:
From inside node:
const roll = ; console;console;console;console
From the cli:
josh@pidgey:~$ roll 3d6+29
Commands are of the form {number_of_dice}d{sides_of_die}[+/-{some_modifier}]
.
Spaces are stripped, otherwise the DSL is pretty limited.
Tests:
npm test