# nano-dice

> Simple and Concise syntax to roll dice with modifiers and capture all the results with support for seeding by default

Latest version **1.0.1** (published 2019-02-03) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-02-03 |
| First published | 2019-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Shaefer |
| Maintainers | shaefer |

## Links

- npm: https://www.npmjs.com/package/nano-dice
- Repository: https://github.com/shaefer/nano-dice
- Homepage: https://github.com/shaefer/nano-dice#readme
- Issues: https://github.com/shaefer/nano-dice/issues
- npm.io page: https://npm.io/package/nano-dice

## Dependencies (1)

- [seedrandom](https://npm.io/package/seedrandom.md) ^2.4.4

## Recent versions

- 1.0.1 (latest) — 2019-02-03
- 1.0.0 — 2019-02-02

## README

# Nano Dice

[![Build Status](https://travis-ci.com/shaefer/nano-dice.svg?branch=master)](https://travis-ci.com/shaefer/nano-dice)
[![Coverage Status](https://coveralls.io/repos/github/shaefer/nano-dice/badge.svg?branch=master&cb=1)](https://coveralls.io/github/shaefer/nano-dice?branch=master)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

**Nano-Dice** ✨

Lightweight Polyhedral Dice Roller

# Features

* **rollDice** - simple function to roll dice and return results = rollDice(numOfDice, numOfSides, adjustment)
* **DiceBag** - a small wrapper for you rollDice function along with a few convenience methods

# Commands
- `npm run clean` - Remove `lib/` directory
- `npm test` - Run tests with linting and coverage results.
- `npm test:only` - Run tests without linting or coverage.
- `npm test:watch` - You can even re-run tests on file changes!
- `npm test:prod` - Run tests with minified code.
- `npm run test:examples` - Test written examples on pure JS for better understanding module usage.
- `npm run lint` - Run ESlint with airbnb-config
- `npm run cover` - Get coverage report for your code.
- `npm run coveralls` - Generage coverage report and post to Coveralls site.
- `npm run build` - Babel will transpile ES6 => ES5 and minify the code.
- `npm run prepublish` - Hook for npm. Do all the checks before publishing your module.

# License

MIT © Daniel Shaefer

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