https://github.com/multarix/dnd-dice
A collection of classes for standard dice rolls and coin flips.
https://github.com/multarix/dnd-dice
Last synced: 2 months ago
JSON representation
A collection of classes for standard dice rolls and coin flips.
- Host: GitHub
- URL: https://github.com/multarix/dnd-dice
- Owner: Multarix
- Created: 2023-06-14T08:50:14.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-20T03:11:35.000Z (over 2 years ago)
- Last Synced: 2025-10-30T19:35:31.818Z (3 months ago)
- Language: TypeScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
[](https://nodei.co/npm/dnd-dice/)
A simple collection of classes for quickly creating and using standard dice rolls and even coin flips.
```js
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](https://projects.multarix.com/dice).
---
# **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](https://github.com/Multarix/dnd-dice).