{"versions":{"0.0.1":{"name":"droll","version":"0.0.1","description":"A dice rolling library that uses standard dice notation","keywords":["die","dice","dice notation","roll","random","rpg","game"],"author":{"name":"Ethan Zimmerman","email":"thebinarypenguin@gmail.com","url":"http://thebinarypenguin.com"},"repository":{"type":"git","url":"http://github.com/thebinarypenguin/droll"},"bugs":{"url":"http://github.com/thebinarypenguin/droll/issues"},"licenses":[{"type":"MIT","url":"http://raw.github.com/thebinarypenguin/droll/master/LICENSE"}],"main":"droll.js","bin":{"droll":"./bin/droll-cli.js"},"devDependencies":{"mocha":"1.14.x","should":"2.1.x"},"private":false,"_id":"droll@0.0.1","dist":{"shasum":"5456f13cbdd968bf8e82569284e3be4ab5eb283a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/droll/-/droll-0.0.1.tgz","size":3376,"integrity":"sha512-+X4AGNwJKAVzbgEBlDe4Sn2XasoD3EWy7vr8zVl/d91+XONmUPFZGMMSuA8cWUuMJ4eLrqIyK4idigMKSPHDuw=="},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"anonymous","email":"thebinarypenguin@gmail.com"},"maintainers":[{"name":"anonymous","email":"thebinarypenguin@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T09:18:56.328Z","contributors":[]},"0.0.3":{"name":"droll","version":"0.0.3","description":"A dice rolling library that uses standard dice notation","keywords":["die","dice","dice notation","roll","random","rpg","game"],"author":{"name":"Ethan Zimmerman","email":"thebinarypenguin@gmail.com","url":"http://thebinarypenguin.com"},"repository":{"type":"git","url":"http://github.com/thebinarypenguin/droll"},"bugs":{"url":"http://github.com/thebinarypenguin/droll/issues"},"licenses":[{"type":"MIT","url":"http://raw.github.com/thebinarypenguin/droll/master/LICENSE"}],"main":"droll.js","bin":{"droll":"./bin/droll-cli.js"},"devDependencies":{"mocha":"1.14.x","should":"2.1.x","grunt":"0.4.x","grunt-contrib-jshint":"0.7.x","grunt-contrib-uglify":"0.2.x","grunt-mocha-cli":"1.4.x","grunt-bump":"0.0.x","grunt-shell":"0.6.x"},"private":false,"_id":"droll@0.0.3","dist":{"shasum":"b192a0ed878518d79a4da450b13c7bd249d06d19","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/droll/-/droll-0.0.3.tgz","size":4017,"integrity":"sha512-+ofskqwVEzFi6Cm72C46TX8TCxwU2E5kwOHY9DErdiqSRvGF50YG6SABKfe0Nb9wrapyvvvQgZkCORpmzonF+A=="},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"anonymous","email":"thebinarypenguin@gmail.com"},"maintainers":[{"name":"anonymous","email":"thebinarypenguin@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T09:18:57.198Z","contributors":[]},"0.0.4":{"name":"droll","version":"0.0.4","description":"A dice rolling library that uses standard dice notation","keywords":["die","dice","dice notation","roll","random","rpg","game"],"author":{"name":"Ethan Zimmerman","email":"thebinarypenguin@gmail.com","url":"http://thebinarypenguin.com"},"repository":{"type":"git","url":"http://github.com/thebinarypenguin/droll"},"bugs":{"url":"http://github.com/thebinarypenguin/droll/issues"},"licenses":[{"type":"MIT","url":"http://raw.github.com/thebinarypenguin/droll/master/LICENSE"}],"main":"droll.js","bin":{"droll":"./bin/droll-cli.js"},"scripts":{"test":"grunt --verbose"},"devDependencies":{"mocha":"1.14.x","should":"2.1.x","grunt":"0.4.x","grunt-contrib-jshint":"0.7.x","grunt-contrib-uglify":"0.2.x","grunt-mocha-cli":"1.4.x","grunt-bump":"0.0.x","grunt-shell":"0.6.x"},"engines":{"node":">=0.8.0"},"private":false,"_id":"droll@0.0.4","dist":{"shasum":"460c15522837708671d290e94dcbafa1c7f04b68","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/droll/-/droll-0.0.4.tgz","size":4204,"integrity":"sha512-4risozh/Sr+KjNb0IUeTbvzR6mYjwbyBb98YrDXqg8J/HWZb1EdAFDhtiSXxSXFWjI6kI1BVf4tCRc3hNBoLWA=="},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"anonymous","email":"thebinarypenguin@gmail.com"},"maintainers":[{"name":"anonymous","email":"thebinarypenguin@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T09:18:58.080Z","contributors":[]},"0.1.0":{"name":"droll","version":"0.1.0","description":"A dice rolling library that uses standard dice notation","keywords":["die","dice","dice notation","roll","random","rpg","game"],"author":{"name":"Ethan Zimmerman","email":"thebinarypenguin@gmail.com","url":"http://thebinarypenguin.com"},"repository":{"type":"git","url":"http://github.com/thebinarypenguin/droll"},"bugs":{"url":"http://github.com/thebinarypenguin/droll/issues"},"licenses":[{"type":"MIT","url":"http://raw.github.com/thebinarypenguin/droll/master/LICENSE"}],"main":"droll.js","bin":{"droll":"./bin/droll-cli.js"},"scripts":{"test":"grunt --verbose"},"devDependencies":{"mocha":"1.14.x","should":"2.1.x","grunt":"0.4.x","grunt-contrib-jshint":"0.7.x","grunt-contrib-uglify":"0.2.x","grunt-mocha-cli":"1.4.x","grunt-bump":"0.0.x","grunt-shell":"0.6.x"},"engines":{"node":">=0.8.0"},"private":false,"gitHead":"56be20fd9247a90ab7cfb326eaafdbca0b1ab777","homepage":"https://github.com/thebinarypenguin/droll","_id":"droll@0.1.0","_shasum":"146d7ac198485797e8aa0312acf8bda48b9042b4","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"anonymous","email":"thebinarypenguin@gmail.com"},"maintainers":[{"name":"anonymous","email":"thebinarypenguin@gmail.com"}],"dist":{"shasum":"146d7ac198485797e8aa0312acf8bda48b9042b4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/droll/-/droll-0.1.0.tgz","size":4213,"integrity":"sha512-Vtf5NXUa/uYXZQJLsocCT1kWxLUizLZFHyW1fcmMcCM+v6iJho6vpjy7/zk8Sf1JoOiLl1QUYPXkkjqjSYBfeA=="},"directories":{},"_cnpmcore_publish_time":"2021-12-23T09:18:58.954Z","contributors":[]},"0.1.1":{"name":"droll","version":"0.1.1","description":"A dice rolling library that uses standard dice notation","keywords":["die","dice","dice notation","roll","random","rpg","game"],"author":{"name":"Ethan Zimmerman","email":"thebinarypenguin@gmail.com","url":"http://thebinarypenguin.com"},"repository":{"type":"git","url":"http://github.com/thebinarypenguin/droll"},"bugs":{"url":"http://github.com/thebinarypenguin/droll/issues"},"licenses":[{"type":"MIT","url":"http://raw.github.com/thebinarypenguin/droll/master/LICENSE"}],"main":"droll.js","bin":{"droll":"./bin/droll-cli.js"},"scripts":{"test":"grunt --verbose"},"devDependencies":{"mocha":"1.14.x","should":"2.1.x","grunt":"0.4.x","grunt-contrib-jshint":"0.7.x","grunt-contrib-uglify":"0.2.x","grunt-mocha-cli":"1.4.x","grunt-bump":"0.0.x","grunt-shell":"0.6.x"},"engines":{"node":">=0.8.0"},"private":false,"gitHead":"905a0dabf8444cbf2e8b1406a27de5abb0bb8cc8","homepage":"https://github.com/thebinarypenguin/droll","_id":"droll@0.1.1","_shasum":"3532bbe49afe87897c71d2c9f30e8d9cdbbbc9ad","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"anonymous","email":"thebinarypenguin@gmail.com"},"maintainers":[{"name":"anonymous","email":"thebinarypenguin@gmail.com"}],"dist":{"shasum":"3532bbe49afe87897c71d2c9f30e8d9cdbbbc9ad","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/droll/-/droll-0.1.1.tgz","size":4219,"integrity":"sha512-pAavShsUGpbuz4Q32UpaxhBsIAFrOSH2CNLWs/0ix+pXg0CJNZcmOpQ+7VmLR/Tfpv6iMkEVoYZMp46kBZDKCw=="},"directories":{},"_cnpmcore_publish_time":"2021-12-23T09:18:59.816Z","contributors":[]},"0.1.2":{"name":"droll","version":"0.1.2","description":"A dice rolling library that uses standard dice notation","keywords":["die","dice","dice notation","roll","random","rpg","game"],"author":{"name":"Ethan Zimmerman","email":"thebinarypenguin@gmail.com","url":"http://thebinarypenguin.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/thebinarypenguin/droll.git"},"bugs":{"url":"http://github.com/thebinarypenguin/droll/issues"},"licenses":[{"type":"MIT","url":"http://raw.github.com/thebinarypenguin/droll/master/LICENSE"}],"main":"droll.js","bin":{"droll":"./bin/droll-cli.js"},"scripts":{"test":"grunt --verbose"},"devDependencies":{"mocha":"1.14.x","should":"2.1.x","grunt":"0.4.x","grunt-contrib-jshint":"0.7.x","grunt-contrib-uglify":"0.2.x","grunt-mocha-cli":"1.4.x","grunt-bump":"0.0.x","grunt-shell":"0.6.x"},"engines":{"node":">=0.8.0"},"private":false,"gitHead":"ea32c8f8933618a775e6a20225ed913ef9001e8b","homepage":"https://github.com/thebinarypenguin/droll#readme","_id":"droll@0.1.2","_shasum":"25deb5c9aa3b0a81d33beca260c2a0922debd9f1","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.2.4","_npmUser":{"name":"anonymous","email":"thebinarypenguin@gmail.com"},"dist":{"shasum":"25deb5c9aa3b0a81d33beca260c2a0922debd9f1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/droll/-/droll-0.1.2.tgz","size":4197,"integrity":"sha512-DhG9JQ0Kp7U98SJGopcz2PO+aCPWDoHKFl21XlYgamU3vG4UI85TMStFr9Nk57+HkwJsoxaKZyqhnbii5jP/8Q=="},"maintainers":[{"name":"anonymous","email":"thebinarypenguin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/droll-0.1.2.tgz_1460377110758_0.7232161271385849"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T09:19:00.695Z","contributors":[]},"0.2.0":{"name":"droll","version":"0.2.0","description":"A dice rolling library that uses standard dice notation","keywords":["die","dice","dice notation","roll","random","rpg","game"],"author":{"name":"Ethan Zimmerman","email":"thebinarypenguin@gmail.com","url":"http://thebinarypenguin.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/thebinarypenguin/droll.git"},"bugs":{"url":"http://github.com/thebinarypenguin/droll/issues"},"licenses":[{"type":"MIT","url":"http://raw.github.com/thebinarypenguin/droll/master/LICENSE"}],"main":"droll.js","bin":{"droll":"./bin/droll-cli.js"},"scripts":{"test":"grunt --verbose"},"devDependencies":{"mocha":"1.14.x","should":"2.1.x","grunt":"0.4.x","grunt-contrib-jshint":"0.7.x","grunt-contrib-uglify":"0.2.x","grunt-mocha-cli":"1.4.x","grunt-bump":"0.0.x","grunt-shell":"0.6.x"},"engines":{"node":">=0.8.0"},"private":false,"gitHead":"af7d9f2b6822ffa11895165440af6e61bc9b800c","homepage":"https://github.com/thebinarypenguin/droll#readme","_id":"droll@0.2.0","_shasum":"39a89179c331df82e37a1ec3e621082390733f04","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.2.4","_npmUser":{"name":"anonymous","email":"thebinarypenguin@gmail.com"},"dist":{"shasum":"39a89179c331df82e37a1ec3e621082390733f04","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/droll/-/droll-0.2.0.tgz","size":4373,"integrity":"sha512-IzXaw0X367fLb5Cg14KGoyLguzfcn6SNnYVZw8OZJ87MR4zjvVqnGM6CPzCzeuQeHL0unjFDbYm3gWn/BCYgDg=="},"maintainers":[{"name":"anonymous","email":"thebinarypenguin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/droll-0.2.0.tgz_1468642856218_0.8365234171506017"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T09:19:01.573Z","contributors":[]},"0.2.1":{"name":"droll","version":"0.2.1","description":"A dice rolling library that uses standard dice notation","keywords":["die","dice","dice notation","roll","random","rpg","game"],"author":{"name":"Ethan Zimmerman","email":"thebinarypenguin@gmail.com","url":"http://thebinarypenguin.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/thebinarypenguin/droll.git"},"bugs":{"url":"http://github.com/thebinarypenguin/droll/issues"},"licenses":[{"type":"MIT","url":"http://raw.github.com/thebinarypenguin/droll/master/LICENSE"}],"main":"droll.js","bin":{"droll":"./bin/droll-cli.js"},"scripts":{"test":"grunt --verbose"},"devDependencies":{"mocha":"1.14.x","should":"2.1.x","grunt":"0.4.x","grunt-contrib-jshint":"0.7.x","grunt-contrib-uglify":"0.2.x","grunt-mocha-cli":"1.4.x","grunt-bump":"0.0.x","grunt-shell":"0.6.x"},"engines":{"node":">=0.8.0"},"private":false,"gitHead":"65a6bf0a4c700a87010356fb90a19dcb9470c235","homepage":"https://github.com/thebinarypenguin/droll#readme","_id":"droll@0.2.1","_shasum":"c91c000c3502469716667aa804dc4bb74f86d03f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"anonymous","email":"thebinarypenguin@gmail.com"},"dist":{"shasum":"c91c000c3502469716667aa804dc4bb74f86d03f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/droll/-/droll-0.2.1.tgz","size":4387,"integrity":"sha512-fXxtxZSwGK6afeG18Vk6q/8LQDAnIylsvk/2tQhHwDOJmdB/x+YL9GLoSZUZXJkQ8LrBcyU/1EoIL1eSlpDMsg=="},"maintainers":[{"name":"anonymous","email":"thebinarypenguin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/droll-0.2.1.tgz_1492653945904_0.8453573065344244"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T09:19:02.438Z","contributors":[]}},"dist-tags":{"latest":"0.2.1"},"name":"droll","time":{"created":"2022-01-27T01:44:08.145Z","modified":"2022-01-27T01:44:08.145Z","0.0.1":"2013-12-03T11:30:16.280Z","0.0.3":"2013-12-15T01:24:37.376Z","0.0.4":"2013-12-31T10:25:47.573Z","0.1.0":"2014-06-13T17:48:24.074Z","0.1.1":"2014-06-13T19:02:33.025Z","0.1.2":"2016-04-11T12:18:31.922Z","0.2.0":"2016-07-16T04:20:57.270Z","0.2.1":"2017-04-20T02:05:46.464Z"},"readme":"# Description\n\nDroll is a JavaScript dice-rolling library. It accepts input in\n[standard dice notation](http://en.wikipedia.org/wiki/Dice_notation) and works in both Node.js\nand browser environments.\n\nAn optional executable is also included in the package for use directly from the command line.\n\n[![Build Status](https://travis-ci.org/thebinarypenguin/droll.svg?branch=master)](https://travis-ci.org/thebinarypenguin/droll)\n\n# Installation\n\nWith npm (recommended)\n\n`npm install droll`\n\nWithout npm\n\nDownload [droll.js](http://raw.github.com/thebinarypenguin/droll/master/droll.js) or\n[droll.min.js](http://raw.github.com/thebinarypenguin/droll/master/droll.min.js)\n\n\n# Usage\n\nNode.js\n\n```javascript\nvar droll = require('droll');\n\nvar result = droll.roll('3d6+1');\n\nconsole.log(result);\n```\n\nBrowser\n\n```html\n<script src=\"droll.js\"></script>\n<script type=\"text/javascript\">\n\n  var result = droll.roll('3d6+1');\n\n  console.log(result);\n\n</script>\n```\n\n\n# Optional Executable\n\nDroll ships with an optional executable that can be installed via npm like this\n\n```\nnpm install droll -g\n```\n\nAnd used from the command line like this\n\n```\n$ droll 3d6+1\n6 + 5 + 5 + 1 = 17\n```\n\n\n# Public Methods\n\n\n### validate(formula)\n\n* __formula__ `String` The dice formula in standard dice notation.\n\nReturns true if `formula` is valid dice notation or false otherwise.\n\n\n### roll(formula)\n\n* __formula__ `String` The dice formula in standard dice notation.\n\nRolls the dice defined by `formula` and returns a `DrollResult` object on success or false\notherwise.\n\nThe `DrollResult` object contains the following properties\n\n* __rolls__ `Array` The result of each die roll.\n* __modifier__ `Number` The optional modifier. The default is 0.\n* __total__ `Number` The sum of the rolls plus the modifier.\n\nThe `DrollResult` object also has a custom `toString()` method for pretty printing the result.\nIt returns strings that look like `6 + 5 + 5 + 1 = 17` or `4 + 2 - 1 = 5` or even just `7`.\n\n\n### parse(formula)\n\n* __formula__ `String` The dice formula in standard dice notation.\n\nParses `formula` into its component pieces and returns a `DrollFormula` object on success or false\notherwise.\n\nThe `DrollFormula` object contains the following properties\n\n* __numDice__ `Number` The number of dice to roll.\n* __numSides__ `Number` The number of sides on each die.\n* __modifier__ `Number` The optional modifier. The default is 0.\n* __minResult__ `Number` The minimum result that can be returned by this formula.\n* __maxResult__ `Number` The maximum result that can be returned by this formula.\n* __avgResult__ `Number` The average result returned by this formula. ((max + min) / 2)","users":{}}