ring-buffjs

1.0.0 • Public • Published

ring-buffjs

Fixed-capacity circular queue

Installation

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm install ring-buffjs

API

var RingBuffer = require('ring-buffjs')

var buffer = new RingBuffer(4); // create queue with size 4
buffer.offer(1);
buffer.peek(); // => 1
buffer.poll(); // => 1

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i ring-buffjs

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.05 kB

Total Files

5

Last publish

Collaborators

  • rylans