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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    3
  • 1.0.1
    1
  • 1.0.0
    2

Package Sidebar

Install

npm i dnd-dice

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

11.1 kB

Total Files

4

Last publish

Collaborators

  • multarix