{"id":16590899,"url":"https://github.com/magic-akari/yocto_queue","last_synced_at":"2025-12-30T15:58:19.292Z","repository":{"id":57675500,"uuid":"363912928","full_name":"magic-akari/yocto_queue","owner":"magic-akari","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-21T03:35:36.000Z","size":25,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-21T04:38:50.406Z","etag":null,"topics":["deno","queue"],"latest_commit_sha":null,"homepage":"https://deno.land/x/yocto_queue","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/magic-akari.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-05-03T11:52:40.000Z","updated_at":"2024-05-30T15:50:02.770Z","dependencies_parsed_at":"2023-10-16T08:28:55.727Z","dependency_job_id":"cbe17e8e-d34c-4039-a7b4-9136e505e431","html_url":"https://github.com/magic-akari/yocto_queue","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"135f31d49200ceef7f88b44bc70250acc6c1a3ef"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magic-akari%2Fyocto_queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magic-akari%2Fyocto_queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magic-akari%2Fyocto_queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magic-akari%2Fyocto_queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magic-akari","download_url":"https://codeload.github.com/magic-akari/yocto_queue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243515523,"owners_count":20303259,"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":["deno","queue"],"created_at":"2024-10-11T23:14:40.446Z","updated_at":"2025-12-30T15:58:19.264Z","avatar_url":"https://github.com/magic-akari.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yocto_queue\n\nSame as [yocto-queue](https://www.npmjs.com/package/yocto-queue) but for Deno.\n\n## Usage\n\n```typescript\nimport { Queue } from \"https://deno.land/x/yocto_queue@VERSION/mod.ts\";\n\nconst queue = new Queue();\n\nqueue.enqueue(\"🦄\");\nqueue.enqueue(\"🌈\");\n\nconsole.log(queue.size);\n//=\u003e 2\n\nconsole.log(...queue);\n//=\u003e '🦄 🌈'\n\nconsole.log(queue.dequeue());\n//=\u003e '🦄'\n\nconsole.log(queue.dequeue());\n//=\u003e '🌈'\n```\n\n## API\n\n### `queue = new Queue()`\n\nThe instance is an [`Iterable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols), which means you can iterate over the queue front to back with a “for…of” loop, or use spreading to convert the queue to an array. Don't do this unless you really need to though, since it's slow.\n\n#### `.enqueue(value)`\n\nAdd a value to the queue.\n\n#### `.enqueue(...values)`\n\nAdd multiply values to the queue.\n\n#### `.dequeue()`\n\nRemove the next value in the queue.\n\nReturns the removed value or `undefined` if the queue is empty.\n\n#### `.clear()`\n\nClear the queue.\n\n#### `.size`\n\nThe size of the queue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagic-akari%2Fyocto_queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagic-akari%2Fyocto_queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagic-akari%2Fyocto_queue/lists"}