{"id":15964711,"url":"https://github.com/mog13/dxjs","last_synced_at":"2025-03-26T14:32:23.391Z","repository":{"id":88464087,"uuid":"51553965","full_name":"mog13/DXJS","owner":"mog13","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-31T22:58:12.000Z","size":852,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T23:41:26.469Z","etag":null,"topics":["conventional-dice","dandd","default-dice","dice","dice-rolls","dxjs","face","game","js","random","roll","utility","webpack2"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mog13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-11T23:06:56.000Z","updated_at":"2023-10-31T19:58:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"28017dad-da58-4c4c-95a3-a2377c087537","html_url":"https://github.com/mog13/DXJS","commit_stats":{"total_commits":41,"total_committers":2,"mean_commits":20.5,"dds":0.3414634146341463,"last_synced_commit":"2b15e3b501569163dacd950321c68d016bf1c611"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mog13%2FDXJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mog13%2FDXJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mog13%2FDXJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mog13%2FDXJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mog13","download_url":"https://codeload.github.com/mog13/DXJS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245670957,"owners_count":20653458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conventional-dice","dandd","default-dice","dice","dice-rolls","dxjs","face","game","js","random","roll","utility","webpack2"],"created_at":"2024-10-07T17:04:04.530Z","updated_at":"2025-03-26T14:32:23.018Z","avatar_url":"https://github.com/mog13.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DXJS\n[![codecov](https://codecov.io/gh/mog13/DXJS/graph/badge.svg?token=bYrtpjhYB2)](https://codecov.io/gh/mog13/DXJS)\n\nDXJS is a library for simulating dice rolls commonly used in tabletop games. It provides a range of standard\ndice from d2 to d100, as well as the ability to define and roll custom dice. The library allows dice rolls to be\nspecified both programmatically and via an interpreted string format, making it highly versatile for various use-cases.\n\n### Installation\n```bash\nnpm install @mog13/dxjs\n```\n\n### Usage\n```javascript\nconst { Dice, roll } = require('@mog13/dxjs');\n\n// roll standard dx dice\nroll(\"d20\"); // 1-20\nroll(\"2d20 + 1d6\"); // 3-46\nroll(\"d1+d2+d3+d4+d5+d6+d7+d8+d9\"); // 9-45\n\n// create your own dice\nconst myNewDice = new Dice(\"myNewDice\", [0,25,50,75,100]);\nmyNewDice.roll(); // 0-100\nroll(\"myNewDice\"); // 0-100\nroll(\"5myNewDice * d4\"); // 0-2000\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmog13%2Fdxjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmog13%2Fdxjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmog13%2Fdxjs/lists"}