{"id":33340005,"url":"https://github.com/aziz-prasetyo/fizz-buzz-javascript","last_synced_at":"2026-04-12T17:40:07.592Z","repository":{"id":324981836,"uuid":"1099340832","full_name":"aziz-prasetyo/fizz-buzz-javascript","owner":"aziz-prasetyo","description":"Fizz Buzz Algorithm Using JavaScript","archived":false,"fork":false,"pushed_at":"2025-11-18T22:30:05.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-19T00:20:22.438Z","etag":null,"topics":["bun","cli","deno","fizzbuzz","javascript","js","node","terminal"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aziz-prasetyo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-18T21:48:54.000Z","updated_at":"2025-11-18T22:30:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aziz-prasetyo/fizz-buzz-javascript","commit_stats":null,"previous_names":["aziz-prasetyo/fizz-buzz-javascript"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/aziz-prasetyo/fizz-buzz-javascript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziz-prasetyo%2Ffizz-buzz-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziz-prasetyo%2Ffizz-buzz-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziz-prasetyo%2Ffizz-buzz-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziz-prasetyo%2Ffizz-buzz-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aziz-prasetyo","download_url":"https://codeload.github.com/aziz-prasetyo/fizz-buzz-javascript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziz-prasetyo%2Ffizz-buzz-javascript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285611835,"owners_count":27201484,"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","status":"online","status_checked_at":"2025-11-21T02:00:06.175Z","response_time":61,"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":["bun","cli","deno","fizzbuzz","javascript","js","node","terminal"],"created_at":"2025-11-21T12:00:27.697Z","updated_at":"2025-11-21T12:01:37.249Z","avatar_url":"https://github.com/aziz-prasetyo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eFizz Buzz CLI - JavaScript\u003c/h1\u003e\n\u003c/div\u003e\n\n## 💡 Description\n\nAn interactive Command Line Interface (CLI) application that implements the classic Fizz Buzz algorithm. This project demonstrates a modular JavaScript structure, asynchronous operations, and robust user input validation.\n\n## 🚀 Features\n\n* **Interactive Menu System**: A main menu loop that allows users to choose between checking a single number, printing a sequence, or exiting.\n* **Two Modes of Operation**:\n    1.  **Check a Number**: Instantly checks if a specific number results in \"Fizz\", \"Buzz\", or \"FizzBuzz\".\n    2.  **Print List**: Generates a sequence from 1 to *n* with a visual delay effect.\n* **Robust Input Validation**:\n    * Prevents empty inputs or inputs with leading/trailing spaces.\n    * Ensures menu selection is strictly available in options.\n    * Validates that numerical inputs are positive or more than zero integers.\n* **Navigation Commands**: Specific keywords (`back` and `exit`) are available in all prompts to return to the previous menu or quit the application immediately.\n* **Modular Architecture**: Code is split into logic, validations, errors, and utilities for better maintainability.\n\n## 📋 Prerequisites\n\nTo run this application, you need a JavaScript runtime that supports the global `prompt()` function and ES Modules, such as **Bun.js**.\n\n* [Bun](https://bun.sh/) (Recommended)\n\n## 🛠️ Installation \u0026 Usage\n\n1.  **Clone the repository**\n    ```bash\n    git clone https://github.com/aziz-prasetyo/fizz-buzz-javascript.git\n    cd fizz-buzz-javascript\n    ```\n\n2.  **Run the application**\n    ```bash\n    bun main.js\n    ```\n\n## 📂 Project Structure\n\n```text\n.\n├── main.js                 # Entry point, menu logic, and game loop\n└── lib/\n    ├── errors.js           # Error handling and printing utilities\n    ├── utils.js            # Helper functions (e.g., sleep/delay)\n    └── validations.js      # Regex-based input validation logic\n```\n\n## ⁉️ Having Issues?\n\nIf you run into any problems during setup or have questions, please feel free to [open an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-an-issue) on this GitHub repository. I'll do my best to help you out.\n\n---\n\n\u003cdiv align=\"center\"\u003e\n    \u003cp\u003eMuhammad Aziz Prasetyo @ 2025\u003c/p\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faziz-prasetyo%2Ffizz-buzz-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faziz-prasetyo%2Ffizz-buzz-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faziz-prasetyo%2Ffizz-buzz-javascript/lists"}