{"id":15622781,"url":"https://github.com/rjz/circular-queue","last_synced_at":"2025-04-12T22:30:00.453Z","repository":{"id":34286902,"uuid":"38175917","full_name":"rjz/circular-queue","owner":"rjz","description":"A lightweight circular queue for node.js","archived":false,"fork":false,"pushed_at":"2015-08-10T03:51:35.000Z","size":124,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T16:38:41.832Z","etag":null,"topics":["datastructures","javascript","queue","ringbuffer"],"latest_commit_sha":null,"homepage":"http://rjzaworski.com/2015/08/circular-queue","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rjz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-27T21:26:34.000Z","updated_at":"2023-11-01T10:18:30.000Z","dependencies_parsed_at":"2022-09-16T14:51:13.909Z","dependency_job_id":null,"html_url":"https://github.com/rjz/circular-queue","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fcircular-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fcircular-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fcircular-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fcircular-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjz","download_url":"https://codeload.github.com/rjz/circular-queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248190507,"owners_count":21062282,"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":["datastructures","javascript","queue","ringbuffer"],"created_at":"2024-10-03T09:55:12.152Z","updated_at":"2025-04-12T22:30:00.425Z","avatar_url":"https://github.com/rjz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"CircularQueue\n===============================================================================\n\nA lightweight circular queue, useful for situations where losing stale data is\npreferable to unchecked memory growth.\n\n[![Build\nStatus](https://travis-ci.org/rjz/circular-queue.svg)](https://travis-ci.org/rjz/circular-queue)\n\nInstallation\n-------------------------------------------------------------------------------\n\nClone this repository:\n\n    $ npm install circular-queue\n\nNow, instantiate a queue with a fixed maximum size:\n\n    var CircularQueue = require('circular-queue');\n    var queue = new CircularQueue(10);\n\n...`offer` it some items:\n\n    queue.offer('one');\n    queue.offer('two');\n    queue.offer('three');\n\n...and `peek` at or `poll` them from the queue:\n\n    queue.peek(); // 'one'\n    queue.poll(); // 'one'\n    queue.peek(); // 'two'\n\n### Events\n\nInstances of `CircularQueue` will emit:\n\n  * `'evict'` - when stale items are evicted from the queue\n\nTesting\n-------------------------------------------------------------------------------\n\nLint and run test suite:\n\n    $ npm test\n\nLicense\n-------------------------------------------------------------------------------\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjz%2Fcircular-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjz%2Fcircular-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjz%2Fcircular-queue/lists"}