@alvarocastro/roll-cli
Roll your 2d6 from the command line!
Last updated 2 months ago by alvarocastro .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @alvarocastro/roll-cli 
SYNC missed versions from official npm registry.

roll-cli

NPM Build Status Maintainability Coverage Status XO code style

Roll your dices directly from the command line!

It supports the dice notation like 1d6 and even simple transforms like 2d10+5 or even 1d8-1d6/2.

Install

npm install -g @alvarocastro/roll-cli

Usage

$ roll 2d6
7
$ roll 1d6+1d10
12

It can also display detailed information about rolls being made:

$ roll -d 2d6+1d10+3
Rolls:
- 2d6: 2, 5
- 1d10: 8

Result: 18

roll [-d] <dice>

dice

A dice notation string. It supports % for percentile dices (1d% is the same as 1d100). It also supports basic math: +, -, * and /.

Options

-d, --details

Used to output detailed information about the roll. Useful to check doubles, critical hits (or failures)

-v, --version

Displays the current installed version of this utility.

Related

Current Tags

  • 1.0.0                                ...           latest (2 months ago)

1 Versions

  • 1.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 9
Dependencies (2)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |