JSPM

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

A dice notation parser and roller.

Package Exports

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

Readme

Dice Notation

Build Status Coverage Status

Parses dice notation and rolls dice.

Install

Browser

You can grab a hosted version here:

<script src="https://cdn.jsdelivr.net/gh/chapelr/dice-notation@latest/dist/dice.min.js" type="text/javascript"></script>

Or include dist/dice.min.js or dice.js as appropriate in your webpage.

NPM

npm install dice-notation-js

Then

const Dice = require('dice-notation-js');