diceroll.js

0.0.2 • Public • Published

dice

Roll a customisable sided dice, defaults to 6 Below are some examples on how to use this package

let dice = require('diceroll.js')
console.log(dice())

Output: [1-6]

Another example:

let dice = require('diceroll.js')
console.log(dice(150))

Output: [1-150]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    1

Package Sidebar

Install

npm i diceroll.js

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

1.03 kB

Total Files

3

Last publish

Collaborators

  • uhfinn