JSPM

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

Standard dice notation parser and evaluator

Package Exports

  • dicewerx

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 (dicewerx) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

dicewerx

npm package for handling standard dice notation

Build Status

A standard dice notation parser and evaluator. Can handle standard dice notation expressions and returns the results of the expression as a number.

Examples

evaluate("1d20")
evaluate("4d6-L")
evaluate("4d4*10")

Documentation available at https://codemastermick.github.io/dicewerx/index.html