This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

mini-prophecy-diceroller
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

Mini Prophecy Diceroller

NPM Registry

A mini language written using ts-parsec to evaluate a string of rolled dice with arthritic expressions

Supported Tokens

  • Parenthesis - (1d20 + 2) * 2
  • Addition/Subtraction - 1d20 + 17 - 8
  • Multiplication/Division - 1d20 / 2

npm Commands

  • npm run test - Runs test suit
  • npm run build - Runs and outputs compiled typescript
  • npx ts-node src/cmd.ts '1d20 * 2 + 1d6' - Evaluate a roll from the command line

Readme

Keywords

none

Package Sidebar

Install

npm i mini-prophecy-diceroller

Weekly Downloads

0

Version

1.3.2

License

MPL-2.0

Unpacked Size

64.6 kB

Total Files

11

Last publish

Collaborators

  • plaidevie