circular_buffer_js

JSON →
library 1.10.0 ·javascript
verified Jun 7, 2026

A TypeScript/JavaScript implementation of a circular buffer (ring buffer, cyclic queue) with 100% code and property coverage. Current stable version is 1.10.0. Released regularly with no notable release cadence. Key differentiators: zero runtime dependencies, multiple build outputs (ESM module, CommonJS, IIFE), TypeScript types included, and extensive testing. Compared to alternatives like 'buffer' or simple arrays, it provides a fixed-size FIFO data structure with efficient push/pop and additional utility methods like shove, resize, and reverse.