A tiny (232 bytes), fast and heap safe Circular Buffer implementation
npm install fixed-circular-bufferA tiny, fast and heap safe singly-linked list of fixed-size (2048) circular buffers.




sh
npm
npm install fixed-circular-bufferyarn
yarn add fixed-circular-buffer
`Usage
`javascript
const CircularBuffer = require('fixed-circular-buffer')const Q = new CircularBuffer()
Q.push('xyz')
Q.size // 1
Q.length // 2048
Q.shift() // 'xyz'
Q.shift() // null
let i = 2049 // data items
while (i > 0) Q.push(i -= 1)
Q.size // 2049
Q.length // 4096
`Tests
Run tests as follows:`
npm run test
``Fixed Circular Buffer is licensed under MIT and can be used for any personal or commercial project.