{"id":15723132,"url":"https://github.com/zachowj/node-red-contrib-random-item","last_synced_at":"2026-03-05T07:31:57.498Z","repository":{"id":65462048,"uuid":"292427497","full_name":"zachowj/node-red-contrib-random-item","owner":"zachowj","description":"A Node-RED node that selects a random item from an array.","archived":false,"fork":false,"pushed_at":"2020-10-15T23:21:58.000Z","size":47,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-24T12:23:50.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/zachowj.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-03T00:45:00.000Z","updated_at":"2020-10-15T23:21:44.000Z","dependencies_parsed_at":"2023-01-24T15:35:14.936Z","dependency_job_id":null,"html_url":"https://github.com/zachowj/node-red-contrib-random-item","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":"0.19047619047619047","last_synced_commit":"30535259438c7c34e63b37d90a8b52bf3788940e"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/zachowj/node-red-contrib-random-item","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachowj%2Fnode-red-contrib-random-item","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachowj%2Fnode-red-contrib-random-item/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachowj%2Fnode-red-contrib-random-item/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachowj%2Fnode-red-contrib-random-item/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachowj","download_url":"https://codeload.github.com/zachowj/node-red-contrib-random-item/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachowj%2Fnode-red-contrib-random-item/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30114177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-10-03T22:10:26.082Z","updated_at":"2026-03-05T07:31:57.459Z","avatar_url":"https://github.com/zachowj.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/zachowj"],"categories":[],"sub_categories":[],"readme":"[![Release Version][release-shield]][release-link] [![License][license-shield]](LICENSE.md)\n\n[![BuyMeCoffee][buymecoffee-shield]][buymecoffee-link]\n\n# node-red-contrib-random-item\n\nA Node-RED node that selects a random item from an array.\n\n## Install\n\nRun the following command in your Node-RED user directory - typically ~/.node-red\n\n```\nnpm i node-red-contrib-random-item\n```\n\n## Usage\n\nA node that selects a random item from an array.\n\n### Inputs\n\nInput needs to be in a JSON formatted array.\n\nExamples of inputs:\n\n```json\n[\"first\", \"second\", \"third\", \"fourth\"]\n```\n\n```json\n[1, 2, 3, 4, 5]\n```\n\n```json\n[\n  { \"name\": \"George Jetson\", \"role\": \"father\" },\n  { \"name\": \"Jane Jetson\", \"role\": \"mother\" },\n  { \"name\": \"Judy Jetson\", \"role\": \"daugter\" },\n  { \"name\": \"Elroy Jetson\", \"role\": \"son\" }\n]\n```\n\n### Outputs\n\nOutput will either be a single data type or an array of items if the `Max # of items` is greater than one.\n\n## Find Us\n\n- [GitHub](https://github.com/zachowj/node-red-contrib-random-item)\n- [Node-RED](https://flows.nodered.org/node/node-red-contrib-random-item)\n- [npm](https://www.npmjs.com/package/node-red-contrib-random-item)\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the\n[tags on this repository](https://github.com/zachowj/node-red-contrib-random-item/tags).\n\n## Authors\n\n- [zachowj](https://github.com/zachowj) - _Initial work_\n\nSee also the list of [contributors](https://github.com/zachowj/node-red-contrib-random-item/contributors) who\nparticipated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n\n[license-shield]: https://img.shields.io/github/license/zachowj/node-red-contrib-random-item.svg?style=for-the-badge\n[release-link]: https://github.com/zachowj/node-red-contrib-random-item/releases\n[release-shield]: https://img.shields.io/github/v/release/zachowj/node-red-contrib-random-item?style=for-the-badge\n[buymecoffee-link]: https://www.buymeacoffee.com/zachowj\n[buymecoffee-shield]: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachowj%2Fnode-red-contrib-random-item","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachowj%2Fnode-red-contrib-random-item","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachowj%2Fnode-red-contrib-random-item/lists"}