JSPM

@randsum/cli

0.2.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q77784F
  • License MIT

Dice rolling CLI and interactive TUI powered by RANDSUM

Package Exports

  • @randsum/cli
  • @randsum/cli/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@randsum/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@randsum/cli

Dice rolling CLI and interactive TUI powered by RANDSUM.

Install

npm install -g @randsum/cli
# or
bunx randsum
# or
npx randsum

Usage

Quick Roll

randsum 4d6L          # Roll 4d6, drop lowest
randsum 2d20H         # Disadvantage (drop highest)
randsum 1d20+5        # Attack roll with modifier
randsum 3d6!          # Exploding dice

Interactive TUI

randsum               # Launch interactive mode
randsum -i            # Explicit interactive flag

Options

-i, --interactive     Launch interactive TUI mode
-v, --verbose         Show detailed roll breakdown
-j, --json            Output results as JSON
-s, --seed <number>   Set random seed for reproducible rolls
-V, --version         Show version
-h, --help            Show help

Dice Notation

Uses RANDSUM Dice Notation — supports drop/keep (L/H), reroll (R{}), exploding (!), unique (U), cap (C{}), and arithmetic (+/-).

License

MIT