1.0.2 • Published 11 months ago

dnd-dice v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

NPM

A simple collection of classes for quickly creating and using standard dice rolls and even coin flips.

import { Die, Coin } from 'dnd-dice';

const faces = 50;
const dice = new Die(faces);
console.log(d.value); // 1-50

const coin = new Coin();
console.log(c.result); // Heads or Tails

Documentation

For details about class methods and properties please check the documentation.


Need help?

If you've encountered a bug or would like to suggest a feature, feel free to create either a pull request or an issue on the github.

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago