dnd-dice
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Package Sidebar

Install

npm i dnd-dice

Weekly Downloads

7

Version

1.0.2

License

MIT

Unpacked Size

11.1 kB

Total Files

4

Last publish

Collaborators

  • multarix