trpg-dice-roller
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

TRPG Dice Roller

使い方

import roller from "trpg-dice-roller";
const text = "1d10";

console.log(roller.match(text));
//true

console.log(roller.roll(text).output);
//1d10 → (6) = 6

Package Sidebar

Install

npm i trpg-dice-roller

Weekly Downloads

16

Version

1.2.1

License

MIT

Unpacked Size

18.2 kB

Total Files

5

Last publish

Collaborators

  • eita-hj