{"id":48733172,"url":"https://github.com/dilums/coin-toss","last_synced_at":"2026-04-12T02:41:34.103Z","repository":{"id":174132684,"uuid":"651818111","full_name":"dilums/coin-toss","owner":"dilums","description":"Just a dummy repo to test NPM publishing","archived":false,"fork":false,"pushed_at":"2023-06-10T08:29:11.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-13T14:11:03.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/dilums.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":"2023-06-10T07:27:22.000Z","updated_at":"2023-06-10T07:53:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c14ffaa-f964-4de3-a6ee-488e8018dae8","html_url":"https://github.com/dilums/coin-toss","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"038bb8a4e7028c1e1fe94724e821d10636c962b4"},"previous_names":["dilums/coin-toss"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dilums/coin-toss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilums%2Fcoin-toss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilums%2Fcoin-toss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilums%2Fcoin-toss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilums%2Fcoin-toss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dilums","download_url":"https://codeload.github.com/dilums/coin-toss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilums%2Fcoin-toss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31702581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-04-12T02:41:33.439Z","updated_at":"2026-04-12T02:41:34.093Z","avatar_url":"https://github.com/dilums.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CoinToss\n\n[![npm version](https://img.shields.io/npm/v/@dilums/coin-toss.svg)](https://www.npmjs.com/package/@dilums/coin-toss)\n[![license](https://img.shields.io/npm/l/@dilums/coin-toss.svg)](https://github.com/dilums/coin-toss/blob/main/LICENSE)\n\n\nCoinToss is a lightweight JavaScript library that allows you to simulate a coin toss. With just a single function, you can quickly generate a random outcome of either \"heads\" or \"tails.\"\n\n## Installation\n\nYou can install CoinToss via npm:\n\n```bash\nnpm install @dilums/cointoss\n```\n\n## Usage\n\nTo use CoinToss in your JavaScript project, import the module and call the `coinToss` function:\n\n```javascript\nconst coinToss = require(\"@dilums/coin-toss\");\n\nconst result = coinToss();\nconsole.log(result ? 'Heads' : 'Tails');\n```\n\nThe `coinToss` function returns a boolean value. When `true`, it represents \"heads,\" and when `false`, it represents \"tails.\"\n\n## Examples\n\nHere's a simple example of using CoinToss in a Node.js script:\n\n```javascript\nconst coinToss = require(\"@dilums/coin-toss\");\n\nfor (let i = 0; i \u003c 5; i++) {\n  const result = coinToss();\n  console.log(`Toss ${i + 1}: ${result ? 'Heads' : 'Tails'}`);\n}\n```\n\nOutput:\n```\nToss 1: Heads\nToss 2: Tails\nToss 3: Tails\nToss 4: Heads\nToss 5: Heads\n```\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdilums%2Fcoin-toss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdilums%2Fcoin-toss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdilums%2Fcoin-toss/lists"}