{"id":15692634,"url":"https://github.com/ultirequiem/random_item","last_synced_at":"2025-07-25T00:04:57.474Z","repository":{"id":39543617,"uuid":"420533433","full_name":"UltiRequiem/random_item","owner":"UltiRequiem","description":"🎁 Get a random item from an array","archived":false,"fork":false,"pushed_at":"2024-05-01T00:03:15.000Z","size":62,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T19:59:20.337Z","etag":null,"topics":["array","deno","javascript","random","typescript"],"latest_commit_sha":null,"homepage":"https://random-item.js.org","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/UltiRequiem.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":"2021-10-23T22:09:36.000Z","updated_at":"2023-03-07T04:28:54.000Z","dependencies_parsed_at":"2023-02-18T16:32:15.313Z","dependency_job_id":"b576c859-e446-4179-9d7a-b60b5fcc706d","html_url":"https://github.com/UltiRequiem/random_item","commit_stats":{"total_commits":74,"total_committers":3,"mean_commits":"24.666666666666668","dds":0.3783783783783784,"last_synced_commit":"548ccbe84b4cbc1a96f8c2af110dd7c22e4a875f"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Frandom_item","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Frandom_item/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Frandom_item/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Frandom_item/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UltiRequiem","download_url":"https://codeload.github.com/UltiRequiem/random_item/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252580107,"owners_count":21771264,"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":["array","deno","javascript","random","typescript"],"created_at":"2024-10-03T18:36:50.455Z","updated_at":"2025-05-05T21:33:41.412Z","avatar_url":"https://github.com/UltiRequiem.png","language":"TypeScript","funding_links":["https://patreon.com/UltiRequiem"],"categories":[],"sub_categories":[],"readme":"# random_item\n\n[![codecov](https://codecov.io/gh/ultirequiem/random_item/branch/main/graph/badge.svg)](https://codecov.io/gh/ultirequiem/random_item)\n[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/random_item/mod.ts)\n\nGet a random item from an array\n\n## Usage\n\nThe API is the same on all this platforms ✔️\n\n### [Deno 🦕](https://deno.land/x/random_item)\n\n```typescript\nimport {\n  randomItem,\n  randomMultipleItems,\n} from \"https://deno.land/x/random_item/mod.ts\";\n\nrandomItem([\"🐴\", \"🦄\", \"🌈\"]); //=\u003e '🦄'\n\nrandomMultipleItems([\"🐴\", \"🦄\", \"🌈\"], 2); //=\u003e ['🌈', '🦄']\n\nrandomItem([...new Set([\"🐴\", \"🦄\", \"🌈\"])]); //=\u003e '🌈'\n```\n\n### [Node.js 🦖](https://npmjs.com/package/@ultirequiem/random-item)\n\n```ts\nimport { randomItem, randomMultipleItems } from \"@ultirequiem/random-item\";\n```\n\n### [Browser 🌐](https://developer.mozilla.org/en-US/docs/Glossary/Browser)\n\nYou can use any [CDN](https://en.wikipedia.org/wiki/Content_delivery_network) 🔥\n\nEg 👉\n[ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) ↔️\n[SkyPack](https://cdn.skypack.dev/@ultirequiem/random-item) 🆚\n[Script Tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script)\n↔️ [JSDelivr](https://cdn.jsdelivr.net/npm/@ultirequiem/random-item)\n\n## Documentation\n\nIs hosted on\n[Deno Doc](https://doc.deno.land/https://deno.land/x/random_item/mod.ts) 📚\n\n## CLI\n\n### Install\n\n- **Deno 🎃**\n\n```sh\ndeno install https://deno.land/x/random_item/random_item.ts\n```\n\n- **Node.js 🐼**\n\n```sh\nnpm install -g @ultirequiem/random-item\n```\n\n### Usage\n\n```sh\nrandom_item --help\n```\n\n[A binary for multiple platforms is provided too!](https://github.com/UltiRequiem/random-item/releases/latest)\n\n[Video Showcase](https://youtu.be/LnQduW2ongY)\n\n## Support\n\nOpen an Issue, I will check it a soon as possible 👀\n\nIf you want to hurry me up a bit\n[send me a tweet](https://twitter.com/UltiRequiem) 😆\n\nConsider [supporting me on Patreon](https://patreon.com/UltiRequiem) if you like\nmy work 🙏\n\nDon't forget to star the repo ⭐\n\n## Versioning\n\nWe use [Semantic Versioning](http://semver.org). For the versions available, see\nthe [tags](https://github.com/UltiRequiem/random_item/tags) 🏷️\n\n## Authors\n\n[Eliaz Bobadilla (a.k.a UltiRequiem)](https://ultirequiem.com) - Creator and\nMaintainer 💪\n\nSee also the full list of\n[contributors](https://github.com/UltiRequiem/random_item/contributors) who\nparticipated in this project ✨\n\n## Licence\n\nLicensed under the MIT License 📄\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Frandom_item","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fultirequiem%2Frandom_item","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Frandom_item/lists"}