UNPKG

@randsum/dice

Version:

A flexible, type-safe dice roller

42 lines 972 B
/** * Base die class for creating custom dice */ export { D } from './D'; /** * Main function for rolling dice with various options */ export { roll } from './roll'; /** * Pre-configured dice ready for use * * @example * import { D20, coin } from '@randsum/dice' * * // Roll a D20 * const result = D20.roll() * * // Flip a coin * const coinResult = coin.roll() */ export { /** A 62-sided die with all alphanumeric characters */ alphaNumDie, /** A two-sided coin with "Heads" and "Tails" faces */ coin, /** A ten-sided die (pentagonal trapezohedron) */ D10, /** A percentile die (simulated with two D10s) */ D100, /** A twelve-sided die (dodecahedron) */ D12, /** A twenty-sided die (icosahedron) */ D20, /** A four-sided die (tetrahedron) */ D4, /** A six-sided die (cube) */ D6, /** An eight-sided die (octahedron) */ D8, /** Fudge/Fate dice with plus, minus, and blank faces */ fudgeDice } from './premadeDice'; //# sourceMappingURL=index.js.map