# dnd-dice

> A collection of classes for standard dice rolls and coin flips.

Latest version **1.0.2** (published 2023-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install dnd-dice
pnpm add dnd-dice
yarn add dnd-dice
bun add dnd-dice
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-06-20 |
| First published | 2023-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Multarix |
| Maintainers | multarix |
| Keywords | dnd, dice, dragon, dungeon, roll, flip, coin, die, d&d, dungeons, and, dragons |

## Links

- npm: https://www.npmjs.com/package/dnd-dice
- Repository: https://github.com/Multarix/dnd-dice
- Homepage: https://projects.multarix.com/dice/
- Issues: https://github.com/Multarix/dnd-dice/issues
- npm.io page: https://npm.io/package/dnd-dice

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2023-06-20
- 1.0.1 — 2023-06-14
- 1.0.0 — 2023-06-14

## README

[![NPM](https://nodei.co/npm/dnd-dice.png?downloads=true&downloadRank=true&stars=true)](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).<br>

---

# **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).

---
_Source: https://npm.io/package/dnd-dice · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
