dice-rpg

1.0.1 • Public • Published

dice-rpg

Roll any combination of common pen&paper dice (d2/4/6/8/10/12/20/100)

Install

npm install dice-rpg

Usage

const dicerpg = require("dice-rpg");

dicerpg.rolled(input); where input is a string like d4 3d6 2d20. The returning object will be like :

{
  '4': [2],
  '6': [6,4,1],
  '20': [12,8]
}

If you need to roll more than 9 dices of the same size, for example 15, just use 9d6 6d6.

Readme

Keywords

Package Sidebar

Install

npm i dice-rpg

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • niwamaxou