0.1.3 • Published 5 years ago

js-dice-codes v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

js-dice-codes CircleCI codecov

Overview

A dice code parser and roller. Takes dice codes of the form 1d6 + 1d8 + 4 and outputs the result as well as the roll of each dice.

Usage

> npm i --save js-dice-codes
> import roll from 'js-dice-codes';
> roll('10d6')
{ result: 33, breakdown: [ 3, 4, 6, 1, 2, 4, 5, 4, 1, 3 ] }
0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago